UNPKG

@wscsports/blaze-rtn-sdk

Version:
17 lines 736 B
interface BlazeAsyncBridgeInterface { /** * Register a handler for a JavaScript method that can be called from native * @param methodName The name of the method to register * @param handler A function that handles the method call and returns a Promise */ registerJSMethod(methodName: string, handler: BlazeJSMethodHandler): void; /** * Unregister a JavaScript method handler * @param methodName The name of the method to unregister */ unregisterJSMethod(methodName: string): void; } type BlazeJSMethodHandler = (params: unknown, callbackId: string) => Promise<any>; export declare const BlazeAsyncBridge: BlazeAsyncBridgeInterface; export {}; //# sourceMappingURL=BlazeAsyncBridge.d.ts.map