Interface: IBridge

core.IBridge

Native bridge interface, all bridges must provide a method called postMessage to receive data from JS or webview.

Methods

postMessage (data) void

Send messages to the bridge, the message structure is like

{
  "method": "ProjectService@delete",
  "payload": {
    "id": 1
  }
}
Name Type Description
data string

the data that needs to be processed