Wortal SDK Core - v1.6
Table of contents
In-app purchase API
Returns true if the SDK Core has been initialized.
Gets the supported APIs for the current platform.
Array of supported APIs.
Initializes the SDK. This should be called before any other SDK functions. It is recommended to call this as soon as the script has been loaded to shorten the initialization time.
NOTE: This is only available if the manual initialization option is set to true. Otherwise, the SDK will initialize automatically.
Promise that resolves when the SDK initialized successfully.
Sets a callback which will be invoked when the app is brought to the background,
||Callback to invoke.|
Requests and performs haptic feedback on supported devices.
Promise that resolves when the haptic feedback was requested successfully.
Sets the loading progress value for the game. This is required on some platforms. Failure to call this with 100 once the game is fully loaded will result in the game failing to start.
||Percentage of loading complete. Range is 0 to 100.|
This indicates that the game has finished initial loading and is ready to start. Context information will be up-to-date when the returned promise resolves. The loading screen will be removed after this is called along with the following conditions:
initializeAsynchas been called and resolved
setLoadingProgresshas been called with a value of
NOTE: This is only available if the manual initialization option is set to true. Otherwise, the game will start automatically.
Promise that resolves when the game has started successfully.