public final class WebViewer extends AndroidViewComponent
Modifier and Type | Class and Description |
---|---|
class |
WebViewer.WebViewInterface
Allows the setting of properties to be monitored from the javascript
in the WebView
|
container
ACCELEROMETER_SENSITIVITY_MODERATE, ACCELEROMETER_SENSITIVITY_STRONG, ACCELEROMETER_SENSITIVITY_WEAK, ALIGNMENT_CENTER, ALIGNMENT_NORMAL, ALIGNMENT_OPPOSITE, ASSET_DIRECTORY, BUTTON_SHAPE_DEFAULT, BUTTON_SHAPE_OVAL, BUTTON_SHAPE_RECT, BUTTON_SHAPE_ROUNDED, COLOR_BLACK, COLOR_BLUE, COLOR_CYAN, COLOR_DEFAULT, COLOR_DKGRAY, COLOR_GRAY, COLOR_GREEN, COLOR_LTGRAY, COLOR_MAGENTA, COLOR_NONE, COLOR_ORANGE, COLOR_PINK, COLOR_RED, COLOR_WHITE, COLOR_YELLOW, DEFAULT_VALUE_COLOR_BLACK, DEFAULT_VALUE_COLOR_BLUE, DEFAULT_VALUE_COLOR_CYAN, DEFAULT_VALUE_COLOR_DEFAULT, DEFAULT_VALUE_COLOR_DKGRAY, DEFAULT_VALUE_COLOR_GRAY, DEFAULT_VALUE_COLOR_GREEN, DEFAULT_VALUE_COLOR_LTGRAY, DEFAULT_VALUE_COLOR_MAGENTA, DEFAULT_VALUE_COLOR_NONE, DEFAULT_VALUE_COLOR_ORANGE, DEFAULT_VALUE_COLOR_PINK, DEFAULT_VALUE_COLOR_RED, DEFAULT_VALUE_COLOR_WHITE, DEFAULT_VALUE_COLOR_YELLOW, DIRECTION_EAST, DIRECTION_MAX, DIRECTION_MIN, DIRECTION_NONE, DIRECTION_NORTH, DIRECTION_NORTHEAST, DIRECTION_NORTHWEST, DIRECTION_SOUTH, DIRECTION_SOUTHEAST, DIRECTION_SOUTHWEST, DIRECTION_WEST, FONT_DEFAULT_SIZE, LAYOUT_ORIENTATION_HORIZONTAL, LAYOUT_ORIENTATION_VERTICAL, LENGTH_FILL_PARENT, LENGTH_PREFERRED, LENGTH_UNKNOWN, SLIDER_MAX_VALUE, SLIDER_MIN_VALUE, SLIDER_THUMB_VALUE, TOAST_LENGTH_LONG, TOAST_LENGTH_SHORT, TYPEFACE_DEFAULT, TYPEFACE_MONOSPACE, TYPEFACE_SANSSERIF, TYPEFACE_SERIF
Constructor and Description |
---|
WebViewer(ComponentContainer container)
Creates a new WebViewer component.
|
Modifier and Type | Method and Description |
---|---|
boolean |
CanGoBack() |
boolean |
CanGoForward() |
void |
ClearCaches()
Clear the webview cache, both ram and disk.
|
void |
ClearLocations()
Clear Stored Location permissions.
|
java.lang.String |
CurrentPageTitle()
Returns the title of the page currently being viewed
|
java.lang.String |
CurrentUrl()
Returns the URL currently being viewed
|
boolean |
FollowLinks()
Indicates whether to follow links when they are tapped in the WebViewer
|
void |
FollowLinks(boolean follow)
Determines whether to follow links when they are tapped
|
android.view.View |
getView()
Returns the
View that is displayed in the UI. |
void |
GoBack()
Go back to the previously viewed page.
|
void |
GoForward()
Go forward in the history list
|
void |
GoHome()
Loads the page from the home URL.
|
void |
GoToUrl(java.lang.String url)
Load the given URL
|
void |
Height(int height)
Specifies the component's vertical height, measured in pixels.
|
java.lang.String |
HomeUrl()
Returns the URL of the page the WebVewier should load
|
void |
HomeUrl(java.lang.String url)
Specifies the URL of the page the WebVewier should load
|
boolean |
IgnoreSslErrors()
Determines whether SSL Errors are ignored.
|
void |
IgnoreSslErrors(boolean ignoreSslErrors)
Determines whether or not to ignore SSL Errors
|
boolean |
PromptforPermission()
Determine if the user should be prompted for permission to use the geolocation API while in
the webviewer.
|
void |
PromptforPermission(boolean prompt)
Determine if the user should be prompted for permission to use the geolocation API while in
the webviewer.
|
void |
UsesLocation(boolean uses)
Specifies whether or not this WebViewer can access the JavaScript
Location API.
|
java.lang.String |
WebViewString()
Gets the web view string
|
void |
WebViewString(java.lang.String newString)
Sets the web view string
|
void |
Width(int width)
Specifies the component's horizontal width, measured in pixels.
|
Column, Column, CopyHeight, CopyWidth, getDispatchDelegate, Height, Row, Row, Visible, Visible, Width
public WebViewer(ComponentContainer container)
container
- container the component will be placed inpublic java.lang.String WebViewString()
public void WebViewString(java.lang.String newString)
public android.view.View getView()
AndroidViewComponent
View
that is displayed in the UI.getView
in class AndroidViewComponent
public void Width(int width)
AndroidViewComponent
Width
in class AndroidViewComponent
width
- in pixelspublic void Height(int height)
AndroidViewComponent
Height
in class AndroidViewComponent
height
- in pixelspublic java.lang.String HomeUrl()
public void HomeUrl(java.lang.String url)
url
- URL of the page the WebVewier should loadpublic java.lang.String CurrentUrl()
public java.lang.String CurrentPageTitle()
public boolean FollowLinks()
public void FollowLinks(boolean follow)
follow
- public boolean IgnoreSslErrors()
public void IgnoreSslErrors(boolean ignoreSslErrors)
ignoreErrors
- set to true to ignore SSL errorspublic void GoHome()
public void GoBack()
public void GoForward()
public boolean CanGoForward()
public boolean CanGoBack()
public void GoToUrl(java.lang.String url)
public void UsesLocation(boolean uses)
uses
- -- Whether or not the API is availablepublic boolean PromptforPermission()
public void PromptforPermission(boolean prompt)
prompt
- set to true to require prompting. False assumes permission is granted.public void ClearLocations()
public void ClearCaches()