AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.WebViewActivity Class Reference
Inheritance diagram for com.google.appinventor.components.runtime.WebViewActivity:
com.google.appinventor.components.runtime.AppInventorCompatActivity

Public Member Functions

void onCreate (Bundle savedInstanceState)
 
- Public Member Functions inherited from com.google.appinventor.components.runtime.AppInventorCompatActivity
final boolean isAppCompatMode ()
 
void onConfigurationChanged (Configuration newConfig)
 
void onSupportActionModeStarted (ActionMode actionMode)
 
void onSupportActionModeFinished (ActionMode actionMode)
 
ActionMode onWindowStartingSupportActionMode (Callback callback)
 
void setContentView (View view)
 
ActionBar getSupportActionBar ()
 

Additional Inherited Members

- Static Public Member Functions inherited from com.google.appinventor.components.runtime.AppInventorCompatActivity
static boolean isEmulator ()
 
static boolean isClassicMode ()
 
static void setClassicModeFromYail (boolean newClassicMode)
 
- Protected Member Functions inherited from com.google.appinventor.components.runtime.AppInventorCompatActivity
void onPostCreate (Bundle savedInstanceState)
 
void onPostResume ()
 
void onStop ()
 
void onDestroy ()
 
void onTitleChanged (CharSequence title, int color)
 
void setActionBarEnabled (boolean enabled)
 
void setClassicMode (boolean classic)
 
void setPrimaryColor (int color)
 
boolean isRepl ()
 
void hideTitleBar ()
 
void maybeShowTitleBar ()
 
void styleTitleBar ()
 
void setAppInventorTheme (Theme theme)
 
- Static Protected Member Functions inherited from com.google.appinventor.components.runtime.AppInventorCompatActivity
static boolean isActionBarEnabled ()
 
static int getPrimaryColor ()
 
- Protected Attributes inherited from com.google.appinventor.components.runtime.AppInventorCompatActivity
ThemeHelper themeHelper
 

Detailed Description

Creates a WebView to display the web page identified by the URL passed in the Intent used to start this activity. Javascript is enabled in the WebView and the WebView is set up to handle all subsequent URLs. If it ever gets directed to a URL with scheme equal to Form#APPINVENTOR_URL_SCHEME, returns that URL to the invoking activity via a result intent.

This is intended for dealing with the web-based part of the OAuth protocol. Start up this activity with an OAuth authorize URL and set up a redirect URL for the authorization to have scheme Form#APPINVENTOR_URL_SCHEME. See the Twitter component for an example.

Author
sharo.nosp@m.n@go.nosp@m.ogle..nosp@m.com (Sharon Perl)

Definition at line 31 of file WebViewActivity.java.

Member Function Documentation

◆ onCreate()

void com.google.appinventor.components.runtime.WebViewActivity.onCreate ( Bundle  savedInstanceState)

The documentation for this class was generated from the following file: