WebkitWebViewClient
WebkitWebViewClient
Events:
- LoadResource (Url As String) 'Works from API level 1 and above.
- OnShouldOverrideKeyEvent (KeyCode As Int, AndroidViewKeyEvent As Object) As Boolean 'Works from API level 1 and above.
- OnUnhandledKeyEvent (KeyCode As Int, AndroidViewKeyEvent As Object) 'Works from API level 1 to API level 21.
- OverrideUrl (Url As String) As Boolean 'Works from API level 1 to API level 23.
- OverrideUrl2 (WebResourceRequest As WebkitWebResourceRequest) As Boolean 'Works from API level 24 and above. WebkitWebResourceRequest library required.
- OverrideUrlWithExternalAppIntent (Url As String, ExternalAppIntent As Intent) As Boolean 'Works from API level 1 to API level 23.
- OverrideUrlWithExternalAppIntent2 (WebResourceRequest As WebkitWebResourceRequest, ExternalAppIntent As Intent) As Boolean 'Works from API level 24 and above. WebkitWebResourceRequest library required.
- PageCommitVisible (Url As String) 'Works from API level 23 and above.
- PageFinished (Url As String) 'Works from API level 1 and above.
- PageStarted (Url As String, FavIcon As Bitmap) 'Works from API level 1 and above.
- ReceivedError (ErrorCode As Int, Description As String, FailingUrl As String) 'Works from API level 1 to API level 23.
- ReceivedError2 (WebResourceRequest As WebkitWebResourceRequest, WebResourceError As WebkitWebResourceError) 'Works from API level 23 and above. WebkitWebResourceRequest and WebkitWebResourceError library required.
- ReceivedHttpAuthRequest (Handler As WebkitHttpAuthHandler, RequestProperties As WebkitHttpAuthRequestProperties) 'Works from API level 1 and above. WebkitHttpAuthHandler library required.
- ReceivedHttpError (WebResponseRequest As WebkitWebResourceRequest, WebResourceResponse As WebkitWebResourceResponse) 'Works from API level 23 and above. WebkitWebResourceRequest and WebkitWebResourceResponse library required.
- ReceivedLoginRequest (Realm As String, Account As String, Args As String) 'Works from API level 12 and above.
- RenderProcessGone (DidCrash As Boolean, RendererPriorityAtExit As Int) 'Works from API level 26 and above.
- SafeBrowsingHit (WebResourceRequest As WebkitWebResourceRequest, SafeBrowsingResponse As WebkitSafeBrowsingResponse) 'Works from API level 27 and above. WebkitWebResourceRequest and WebkitSafeBrowsingResponse library required.
- ScaleChanged (OldScale As Float, NewScale As Float) 'Works from API level 1 and above.
- ShouldInterceptRequest (Url As String) As WebkitWebResourceResponse 'Works from API level 11 to API level 20. WebkitWebResourceResponse library required.
- ShouldInterceptRequest2 (Request As WebkitWebResourceRequest) As WebkitWebResourceResponse 'Works from API level 21 and above. WebkitWebResourceRequest and WebkitWebResourceResponse library required.
- UpdateVisitedHistory (Url As String, IsReload As Boolean) 'Works from API level 1 and above.
Functions:
- Initialize (CallBack As Object, EventName As String, mWebWiew As WebView, Enabled As Boolean) As String
Initializes the new instance of costom android.webkit.WebViewClient as WebkitWebViewClient.
mWebWiew As WebView - Pass WebView into which the WebkitWebViewClient will be integrated, or pass Null if you just want to initialize the WebkitWebViewClient that you will integrate manually by calling ToObject method. If you pass Null, Enabled property will have no effect and will always be False.
Enabled as Boolean - Pass True to start WebkitWebViewClient immediately or pass False if you want to start it later. You can change Enabled state throught WebkitWebViewClient.Enabled property.
- ToObject As Object
Convert WebkitWebViewClient to android.webkit.WebViewClient which can be used in inline Java code.
- IsInitialized As Boolean
Tests whether the object has been initialized.
Properties:
- Enabled As Boolean
Gets or sets WebkitWebViewClient state.
True - Start WebkitWebViewClient.
False - Stop WebkitWebViewClient.