NativeBridgeExtensionDelegate
public protocol NativeBridgeExtensionDelegate : AnyObject
Delegate to extend the native bridge.
-
Called when an action is triggered from the JavaScript Environment. This method should return the metadata used in the
ActionArgument
.Declaration
Swift
@MainActor func actionsMetadata( for command: JavaScriptCommand, webView: WKWebView ) -> [String: String]
-
extendJavaScriptEnvironment(_:
AsynchronouswebView: ) Called before the JavaScript environment is being injected into the web view.
Declaration
Swift
@MainActor func extendJavaScriptEnvironment( _ js: any JavaScriptEnvironmentProtocol, webView: WKWebView ) async