Skip to content

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.
codeless_ui_builder_native_api_is_running_in
codeless_ui_builder_native_api_example_is_running_in_browser
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.
codeless_ui_builder_native_api_execute_native_method
codeless_ui_builder_native_api_example_execute_native_method
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.
codeless_ui_builder_native_api_register_device_for_push_notifications
codeless_ui_builder_native_api_example_register_device_for_push_notifications
Removes the native event listener.
The id parameter expects a string value identifying the listener to delete.
codeless_ui_builder_native_api_remove_native_event_listener_with_id
codeless_ui_builder_native_api_example_remove_native_event_listener
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.
codeless_ui_builder_native_api_add_native_event_listener
codeless_ui_builder_native_api_example_add_native_event_listener
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.
codeless_ui_builder_native_api_add_push_notification_event_listener
codeless_ui_builder_native_api_example_add_push_notification_event_listener