Native API¶
Block description |
Block rendering |
Block example |
---|---|---|
Identifies where the application is running: 1. Browser 2. Native Shell 3. Viewer Returns a boolean value. |
||
Executes a custom method in the Backendless Native Shell. The name parameter identifies the name of the method to invoke. It expects a string value.The data parameter can be one of the following depending on the number of the method's parameters:If the native method has only 1 parameter, then a single value must be passed to the parameter. The data type of the single value can be: string , boolean , number , array , object or null .In case the native method has multiple parameters, then a JSON object or an array must be passed to the method, containing parameter names and corresponding values of any data type. |
||
This native method works only in the Backendless Native Shell. It allows registering the device in the Backendless App to start receiving push notifications through the specified messaging channel. The channel name parameter expects a string value identifying the messaging channel to subscribe. |
||
Removes the native event listener. The id parameter expects a string value identifying the listener to delete. |
||
Registers a listener to receive custom events from the Backendless Native Shell. Registration must be conducted using the native code. The id parameter expects a string value identifying the name of the event listener. The event name parameter also expects a string value identifying the event name to listen to. |
||
Registers a listener to receive push notifications from the Backendless Native Shell. The id parameter expects a string value identifying the name of the push notification event listener. |