webView(_:shouldPerformAction:fromSender:)
Returns a Boolean value that indicates whether the action sent by the specified object should be performed.
Declaration
optional func webView(_ webView: WebView!, shouldPerformAction action: Selector!, fromSender sender: Any!) -> BoolParameters
- webView:
The web view that sent the message.
- action:
The action to perform. See Webview Swift.class for information on actions a web view can perform.
- sender:
The object that sent the action.
Return Value
Discussion
This method allows the delegate to control the web view’s behavior when action methods are invoked. For example, if the action is copy:, the delegate can return false to perform a copy in some other way than the default.