How to connect OverrideUrl event with my WebView control?

HDBarodi

Member
Licensed User
Longtime User
Dear All,

I am trying to make additional library based on WebView control. My question is how to connect OverrideUrl event with my WebView control?
As I understand from this question
http://www.b4x.com/forum/basic4andr...webview-example-works-without-initialize.html
I need to Initialize my WebView as it is made pragmatically.
I try to do something like:
B4X:
myWebView.Initialize("myWebView_OverrideUrl")
but it not works.
Any help Please?

Best regards,
H D Barodi
 

warwound

Expert
Licensed User
Longtime User
You need to do something like:

B4X:
myWebView.Initialize("myWebView")

Now the WebView events can be handled with these Subs:

B4X:
Sub myWebView_OverrideUrl (Url As String) As Boolean
   
End Sub

Sub myWebView_PageFinished (Url As String)
   
End Sub

Sub myWebView_UserAndPasswordRequired (Host As String, Realm As String) As String()
   
End Sub

Martin.
 
Upvote 0
Top