AirshipWebViewClient

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

Constructors

Link copied to clipboard
constructor()
Default constructor.

Inherited properties

Link copied to clipboard
Link copied to clipboard
val ERROR_BAD_URL: Int = -12
Link copied to clipboard
val ERROR_CONNECT: Int = -6
Link copied to clipboard
Link copied to clipboard
val ERROR_FILE: Int = -13
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val ERROR_IO: Int = -7
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val ERROR_TIMEOUT: Int = -8
Link copied to clipboard
Link copied to clipboard
val ERROR_UNKNOWN: Int = -1
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun addAuthRequestCredentials(@NonNull expectedAuthHost: String, @Nullable username: String, @Nullable password: String)
Adds auth request credentials for a host.
Link copied to clipboard
open fun onLoadResource(@NonNull webView: WebView, @Nullable url: String)
Link copied to clipboard
Link copied to clipboard
open fun onPageStarted(@NonNull view: WebView, @Nullable url: String, @Nullable favicon: Bitmap)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun removeAuthRequestCredentials(@NonNull expectedAuthHost: String)
Removes auth request credentials for a host.
Link copied to clipboard
open fun setActionCompletionCallback(@Nullable actionCompletionCallback: ActionCompletionCallback)
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

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