NativeBridgeExtensionDelegate
@objc(UANativeBridgeExtensionDelegate)
public protocol NativeBridgeExtensionDelegate
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
@objc(actionsMetadataForCommand:webView:) @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
@objc @MainActor func extendJavaScriptEnvironment( _ js: JavaScriptEnvironmentProtocol, webView: WKWebView ) async