AirshipWebViewClient

A web view client that enables the Airship Native Bridge on allowed URLs.

Constructors

Link copied to clipboard
constructor(nativeBridge: NativeBridge)
constructor()

Default constructor.

Functions

Link copied to clipboard
fun addAuthRequestCredentials(expectedAuthHost: String, username: String?, password: String?)

Adds auth request credentials for a host.

Link copied to clipboard
protected fun isAllowed(url: String?): Boolean

Checks if the URL is allowed.

Link copied to clipboard
open fun onClose(webView: WebView)

Called when Airship.close() is triggered from the Airship Javascript interface.

Link copied to clipboard
open override fun onLoadResource(webView: WebView, url: String?)
Link copied to clipboard
open override fun onPageFinished(view: WebView?, url: String?)
Link copied to clipboard
open override fun onPageStarted(view: WebView, url: String?, favicon: Bitmap?)
Link copied to clipboard
open override fun onReceivedError(view: WebView?, request: WebResourceRequest?, error: WebResourceError?)
Link copied to clipboard
open override fun onReceivedHttpAuthRequest(view: WebView, handler: HttpAuthHandler, host: String?, realm: String?)
Link copied to clipboard
fun removeAuthRequestCredentials(expectedAuthHost: String)

Removes auth request credentials for a host.

Link copied to clipboard

Sets the action completion callback to be invoked whenever an com.urbanairship.actions.Action is finished running from the web view.

Link copied to clipboard

Intercepts the favicon request and returns blank favicon

Intercepts the favicon request and returns a blank favicon

Link copied to clipboard
open override fun shouldOverrideUrlLoading(webView: WebView, url: String?): Boolean

Inherited functions

Link copied to clipboard
open fun doUpdateVisitedHistory(view: WebView?, url: String?, isReload: Boolean)
Link copied to clipboard
open fun onFormResubmission(view: WebView?, dontResend: Message?, resend: Message?)
Link copied to clipboard
open fun onPageCommitVisible(view: WebView?, url: String?)
Link copied to clipboard
Link copied to clipboard
open fun onReceivedError(view: WebView?, errorCode: Int, description: String?, failingUrl: String?)
Link copied to clipboard
open fun onReceivedHttpError(view: WebView?, request: WebResourceRequest?, errorResponse: WebResourceResponse?)
Link copied to clipboard
open fun onReceivedLoginRequest(view: WebView?, realm: String?, account: String?, args: String?)
Link copied to clipboard
open fun onReceivedSslError(view: WebView?, handler: SslErrorHandler?, error: SslError?)
Link copied to clipboard
Link copied to clipboard
open fun onSafeBrowsingHit(view: WebView?, request: WebResourceRequest?, threatType: Int, callback: SafeBrowsingResponse?)
Link copied to clipboard
open fun onScaleChanged(view: WebView?, oldScale: Float, newScale: Float)
Link copied to clipboard
open fun onTooManyRedirects(view: WebView?, cancelMsg: Message?, continueMsg: Message?)
Link copied to clipboard
open fun onUnhandledKeyEvent(view: WebView?, event: KeyEvent?)
Link copied to clipboard
open fun shouldOverrideKeyEvent(view: WebView?, event: KeyEvent?): Boolean
Link copied to clipboard