| java.lang.Object | ||
| ↳ | android.webkit.WebViewClient | |
| ↳ | com.urbanairship.webkit.AirshipWebViewClient | |
Known Direct Subclasses
|
A web view client that enables the Airship Native Bridge on allowed URLs.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.webkit.WebViewClient
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
AirshipWebViewClient()
Default constructor.
| |||||||||||
| AirshipWebViewClient(ActionRunRequestFactory requestFactory) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
addAuthRequestCredentials(String expectedAuthHost, String username, String password)
Adds auth request credentials for a host.
| ||||||||||
| void | onLoadResource(WebView webView, String url) | ||||||||||
| void | onPageFinished(WebView view, String url) | ||||||||||
| void | onPageStarted(WebView view, String url, Bitmap favicon) | ||||||||||
| void | onReceivedError(WebView view, WebResourceRequest request, WebResourceError error) | ||||||||||
| void | onReceivedHttpAuthRequest(WebView view, HttpAuthHandler handler, String host, String realm) | ||||||||||
| void |
removeAuthRequestCredentials(String expectedAuthHost)
Removes auth request credentials for a host.
| ||||||||||
| void |
setActionCompletionCallback(ActionCompletionCallback actionCompletionCallback)
Sets the action completion callback to be invoked whenever an
Action
is finished running from the web view. | ||||||||||
| WebResourceResponse |
shouldInterceptRequest(WebView webView, WebResourceRequest request)
Intercepts the favicon request and returns blank favicon
| ||||||||||
| WebResourceResponse |
shouldInterceptRequest(WebView webView, String url)
Intercepts the favicon request and returns a blank favicon
| ||||||||||
| boolean | shouldOverrideUrlLoading(WebView webView, String url) | ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| boolean |
isAllowed(String url)
Checks if the URL is allowed.
| ||||||||||
| void |
onClose(WebView webView)
Called when UAirship.close() is triggered from the Airship Javascript interface.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.webkit.WebViewClient
| |||||||||||
From class
java.lang.Object
| |||||||||||
Default constructor.
Adds auth request credentials for a host.
| expectedAuthHost | The expected host. |
|---|---|
| username | The auth user. |
| password | The auth password. |
Removes auth request credentials for a host.
| expectedAuthHost | The expected host. |
|---|
Sets the action completion callback to be invoked whenever an Action
is finished running from the web view.
| actionCompletionCallback | The completion callback. |
|---|
Intercepts the favicon request and returns blank favicon
| webView | The web view. |
|---|---|
| request | The WebResourceRequest being loaded. |
Intercepts the favicon request and returns a blank favicon
| webView | The web view. |
|---|---|
| url | The url being loaded. |
Checks if the URL is allowed.
| url | The URL being loaded. |
|---|
true if the URL is allowed, otherwise false.
Called when UAirship.close() is triggered from the Airship Javascript interface. The default behavior simulates a back key press.
| webView | The web view. |
|---|