@myjsblock/sdkpackage. This package exposes asynchronous functions to call from your application. The functions provide a simplified API to communicate with the application shell.
All the functions of
@myjsblock/sdkare categorized in the following categories:
Core functions are the basic interactive functions like
hideLoader, and also offers functions to request and set data on "block level".
Data includes all functions for retrieving data from block data context. This does not include functions to change data.
Navigation includes functions to navigate through the app. For example navigate to another block or go back.
Notification includes functions to create native interactive modals, dialogs and alerts to the user.
Media includes functions to access the device's media, like picking images and taking pictures with the device's camera.
User includes functions to access user information, like whether someone is authenticated or what the users data is.