Hi, I'm updating an APP that was using UltimateWebView library to WebkitLibrarySet but I'm having some troubles creting child windows, I'm trying this whay (that was working with UWV) the function is triggered but it seems that the child window is never created
WebKitWebView1_CreateChildWindow:
Private Sub WKWebView1_CreateChildWindow (IsDialog As Boolean, IsUserGesture As Boolean) As WebkitWebView
Log("Added New Child Window")
'Return Null if you do not want to create child window. Page will not be loaded!
NewUltimateView.Initialize(Me,"NewUltimateView")
NewUltimateView.EnableSlowWholeDocumentDraw
NewUltimateView.Settings.ImportSettingsFrom(WKWebView1.WebView) 'Import settings from main UltimateWebView without referencing.
NewUltimateView.CookieManager.AcceptCookies=True
NewUltimateView.CookieManager.AcceptFileSchemeCookies=True
NewUltimateView.CookieManager.AcceptThirdPartyCookies=True
NewUltimateView.CookieManager.Flush
Log(NewUltimateView.OriginalUrl)
Return NewUltimateView 'Return created UltimateWebView like child window. Library will do the rest. You can initialize all needed events for this child.
End Sub
I'm checking child windows to see if it is created but in .WebChromeClient.WebViewsChildrenViews the list is empty, Is there any other step to create child windows with WebKitLibrarySet?
Yes, the return result is a WebView because the WebkitLibrarySet is compatible with the standard B4A WebView. All other classes from WebKitLibrarySet have seen the same changes.
Yes, the return result is a WebView because the WebkitLibrarySet is compatible with the standard B4A WebView. All other classes from WebKitLibrarySet have seen the same changes.
Excelent @Ivica Golubovic thak you for have made that excellent set of libraries, there are a lot of functions that I'm still exploring and learning about them.