Platforms to show: All Mac Windows Linux Cross-Platform
WKWebViewIOSControlMBS control
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
control | WebKit2 | MBS Mac64bit Plugin | 21.0 | ❌ No | ❌ No | ❌ No | ✅ Yes | iOS only |
Notes:
This is a control is for iOS only and uses 64-bit.
But we can add features over time as needed.
Let us know if you need a method from WKWebView or an event from WKNavigationDelegate or WKUIDelegate.
- 31 events
- event Close
- event CreateWebView(URL as String, request as NSURLRequestMBS) as WKWebViewIOSControlMBS
- event decidePolicyForNavigationAction(navigationAction as WKNavigationActionMBS, decisionHandler as WKPolicyForNavigationActionDecisionHandlerMBS)
- event decidePolicyForNavigationResponse(navigationResponse as WKNavigationResponseMBS, decisionHandler as WKPolicyForNavigationResponseDecisionHandlerMBS)
- event DidClose
- event didCommitNavigation(navigation as WKNavigationMBS)
- event didFailNavigation(navigation as WKNavigationMBS, Error as NSErrorMBS)
- event didFailProvisionalNavigation(navigation as WKNavigationMBS, Error as NSErrorMBS)
- event didFinishNavigation(navigation as WKNavigationMBS)
- event DidReceiveAuthenticationChallenge(challenge as NSURLAuthenticationChallengeMBS, byref AuthChallengeDisposition as Integer, byref credentials as NSURLCredentialMBS)
- event didReceiveScriptMessage(Body as Variant, name as String)
- event didReceiveServerRedirectForProvisionalNavigation(navigation as WKNavigationMBS)
- event didStartProvisionalNavigation(navigation as WKNavigationMBS)
- event downloadDecideDestinationUsingResponse(download as WKDownloadMBS, response as NSURLResponseMBS, suggestedFilename as String, byref destination as FolderItem)
- event downloadDidFailWithError(download as WKDownloadMBS, error as NSErrorMBS, resumeData as MemoryBlock)
- event downloadDidFinish(download as WKDownloadMBS)
- event downloadDidReceiveAuthenticationChallenge(download as WKDownloadMBS, challenge as NSURLAuthenticationChallengeMBS, byref AuthChallengeDisposition as Integer, byref credentials as NSURLCredentialMBS)
- event downloadWillPerformHTTPRedirection(download as WKDownloadMBS, response as NSURLResponseMBS, request as NSURLRequestMBS, byref DownloadRedirectPolicy as Integer)
- event EstimatedProgressChanged(estimatedProgress as double, oldEstimatedProgress as double)
- event GotFocus
- event JavaScriptEvaluated(JavaScript as String, Result as Variant, Error as NSErrorMBS, Tag as String)
- event LostFocus
- event navigationActionDidBecomeDownload(navigationAction as WKNavigationActionMBS, download as WKDownloadMBS)
- event navigationResponseDidBecomeDownload(navigationResponse as WKNavigationResponseMBS, download as WKDownloadMBS)
- event Open
- event runJavaScriptAlertPanel(initiatedByFrame as WKFrameInfoMBS, message as String)
- event runJavaScriptConfirmPanel(initiatedByFrame as WKFrameInfoMBS, message as String) as boolean
- event runJavaScriptTextInputPanel(initiatedByFrame as WKFrameInfoMBS, prompt as String, defaultText as String) as String
- event takeSnapshotCompleted(image as NSImageMBS, error as NSErrorMBS, tag as string)
- event TitleChanged(Title as String, oldTitle as string)
- event WebContentProcessDidTerminate
- 22 properties
- property allowFileAccessFromFileURLs as Boolean
- property allowsBackForwardNavigationGestures as Boolean
- property allowsLinkPreview as Boolean
- property allowUniversalAccessFromFileURLs as Boolean
- property backForwardList as WKBackForwardListMBS
- property CanGoBack as Boolean
- property CanGoForward as Boolean
- property customUserAgent as String
- property developerExtrasEnabled as Boolean
- property EstimatedProgress as Double
- property hasOnlySecureContent as Boolean
- property IsLoading as Boolean
- property javaScriptCanOpenWindowsAutomatically as Boolean
- property javaScriptEnabled as Boolean
- property loadsImagesAutomatically as Boolean
- property minimumFontSize as Double
- property Navigation as WKNavigationMBS
- property privateBrowsing as Boolean
- property Title as String
- property URL as String
- property View as NSViewMBS
- property WKWebView as WKWebViewMBS
- shared property UsePrivateBrowsing as Boolean
- 20 methods
- method addScriptMessageHandler(Name as String)
- method addUserScript(userScript as WKUserScriptMBS)
- method EvaluateJavaScript(JavaScript as String, byref Error as NSErrorMBS) as Variant
- method EvaluateJavaScript(JavaScript as String, Tag as String = "")
- method goBack
- method goForward
- method goToBackForwardListItem(Item as WKBackForwardListItemMBS)
- method LoadData(Data as MemoryBlock, MIMEType as String, textEncodingName as String, baseURL as string = "")
- method LoadFileURL(File as FolderItem, readAccessItem as FolderItem)
- method LoadHTML(htmlText as String, baseURL as string = "")
- method LoadURL(URL as string)
- method LoadURLRequest(Request as NSURLRequestMBS)
- method reload
- method reloadFromOrigin
- method removeAllUserScripts
- method removeScriptMessageHandler(Name as String)
- method stopLoading
- method takeSnapshot(byref error as NSErrorMBS) as NSImageMBS
- method takeSnapshot(tag as string = "")
- method userScripts as WKUserScriptMBS()
- shared method setUsePrivateBrowsing(value as Boolean)
- 6 constants
Authentication Challenge Responses
Constant | Value | Description |
---|---|---|
AuthChallengeCancelAuthenticationChallenge | 2 |
Cancel the entire request. The provided credential parameter is ignored. |
AuthChallengePerformDefaultHandling | 1 |
Use the default handling for the challenge as though this delegate method were not implemented. The provided credential parameter is ignored. |
AuthChallengeRejectProtectionSpace | 3 |
Reject this challenge, and call the authentication delegate method again with the next authentication protection space. The provided credential parameter is ignored. |
AuthChallengeUseCredential | 0 |
Use the specified credential, which may be nil. |
Redirect Policy
Constant | Value | Description |
---|---|---|
DownloadRedirectPolicyAllow | 1 |
Allow a redirect to proceed. |
DownloadRedirectPolicyCancel | 0 |
Cancel the redirect action. |
Blog Entries
- MBS Xojo Plugins, version 22.4pr1
- MBS Xojo Plugins, version 22.1pr6
- MBS Xojo Plugins Version 21.0 News
- MonkeyBread Software Releases the MBS Xojo Plugins in version 21.0
- Three new controls for iOS in Xojo
- MBS Xojo Plugins, version 20.6pr3
The items on this page are in the following plugins: MBS Mac64bit Plugin.
