Platforms to show: All Mac Windows Linux Cross-Platform
WKNavigationActionMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | WebKit2 | MBS Mac64bit Plugin | 22.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Use a WKNavigationAction object to make policy decisions about whether to allow navigation within your app’s web view. You don’t create WKNavigationAction objects directly. Instead, the web view creates them and delivers them to the appropriate delegate objects. Use the methods of your delegate to analyze the action and determine whether to allow the resulting navigation to occur.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 9 properties
- property buttonNumber as Integer
- property Handle as Integer
- property modifierFlags as Integer
- property navigationType as Integer
- property newWindow as Boolean
- property request as NSURLRequestMBS
- property shouldPerformDownload as Boolean
- property sourceFrame as WKFrameInfoMBS
- property targetFrame as WKFrameInfoMBS
- method Constructor Private
- 6 constants
Navigation Types
Constant | Value | Description |
---|---|---|
NavigationTypeBackForward | 2 |
An item from the back-forward list was requested. |
NavigationTypeFormResubmitted | 4 |
A form was resubmitted (for example by going back, going forward, or reloading). |
NavigationTypeFormSubmitted | 1 |
A form was submitted. |
NavigationTypeLinkActivated | 0 |
A link with an href attribute was activated by the user. |
NavigationTypeOther | -1 |
Navigation is taking place for some other reason. |
NavigationTypeReload | 3 |
The webpage was reloaded. |
This class has no sub classes.
Some events using this class:
- DesktopWKWebViewControlMBS.decidePolicyForNavigationAction(navigationAction as WKNavigationActionMBS, decisionHandler as WKPolicyForNavigationActionDecisionHandlerMBS)
- DesktopWKWebViewControlMBS.navigationActionDidBecomeDownload(navigationAction as WKNavigationActionMBS, download as WKDownloadMBS)
- WKWebViewControlMBS.decidePolicyForNavigationAction(navigationAction as WKNavigationActionMBS, decisionHandler as WKPolicyForNavigationActionDecisionHandlerMBS)
- WKWebViewControlMBS.navigationActionDidBecomeDownload(navigationAction as WKNavigationActionMBS, download as WKDownloadMBS)
- WKWebViewIOSControlMBS.decidePolicyForNavigationAction(navigationAction as WKNavigationActionMBS, decisionHandler as WKPolicyForNavigationActionDecisionHandlerMBS)
- WKWebViewIOSControlMBS.navigationActionDidBecomeDownload(navigationAction as WKNavigationActionMBS, download as WKDownloadMBS)
Some examples using this class:
Blog Entries
Release notes
- Version 22.3
- Added WKNavigationActionMBS and WKFrameInfoMBS classes.
The items on this page are in the following plugins: MBS Mac64bit Plugin.
WKHTTPCookieStoreMBS - WKNavigationMBS