Module: bridge

bridge

Native/Browser execution module

Members

static,readonlymodule:bridge.CallbackStatusnumber

Status values

Methods

staticexecute(moduleID, functionName, callback){string}

Execute a native/browser command

Name Type Description
moduleID string

The id of the module

functionName string

-

callback function

Function to be called when the event is triggered

Returns:
Type Description
string uuid to reference this slot-callback pair

staticnativeCallback(callbackID, status, params)

Function called from native to fire a single callback It will always be executed on the main thread.

Name Type Description
callbackID string

Unique ID of the stored callback

status CallbackStatus

Callback status

params Object

Parameters

staticnativeCallback()