Classes
Interface Definitions
-
Native bridge interface, all bridges must provide a method called
postMessage
to receive data from JS or webview. -
Data structure for native call tasks
Properties:
Name Type Description callback
Function If the caller needs the result, a Promise will be returned. This field will be the Promise.resolve function.
listen
boolean Is this a onetime call or we should continuously return the result
needsJson
boolean Whether we need to convert the result to JSON object