invoke
Invokes a native bridge command and resolves its result.
Invokes a native bridge command and resolves its result. Before using the bridge, make sure native supports webview-bundle.
Throws a BridgeError on failure.
function invoke<T = unknown>(name: string, params?: InvokeParams): Promise<T>;Parameters
Prop
Type
Returns
Promise<T>