BlockNativeBridgeActionRunner
public struct BlockNativeBridgeActionRunner : NativeBridgeActionRunner
Action runner used in the NativeBridge
that calls through to a block.
-
Default initialiizer.
Declaration
Swift
public init(onRun: @escaping @MainActor (String, ActionArguments, WKWebView) async -> ActionResult)
Parameters
onRun
The action block.
-
runAction(actionName:
Asynchronousarguments: webView: ) Declaration
Swift
@MainActor public func runAction(actionName: String, arguments: ActionArguments, webView: WKWebView) async -> ActionResult