-
Notifications
You must be signed in to change notification settings - Fork 0
Home
This module offers a collection of functions designed to address specific tasks and provide utilities for various purposes. Explore the available functions to make the most of the functionalities provided by this module.
- googleplayinstant_is_instant_app
- googleplayinstant_set_instant_app_cookie
- googleplayinstant_get_instant_app_cookie_max_size
- googleplayinstant_get_instant_app_cookie
- googleplayinstant_get_instant_app_data
- googleplayinstant_read_instant_app_data
- googleplayinstant_show_install_prompt
Checks if application loaded as instant experience.
Syntax:
googleplayinstant_is_instant_app()
Returns:
Save byte array in cookies to be able get access to this data in installable application.
Syntax:
googleplayinstant_set_instant_app_cookie()
Returns:
Gets the maximum size in bytes of the cookie data an instant app can store on the device.
Syntax:
googleplayinstant_get_instant_app_cookie_max_size()
Returns:
Load byte array from cookies that were saved in instant application.
Syntax:
googleplayinstant_get_instant_app_cookie()
Returns:
Fetches data from the current instant app. This function needs to be called prior to googleplayinstant_read_instant_app_data.
This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Social Async Event.
Syntax:
googleplayinstant_get_instant_app_data()
Returns:
N/A
Triggers:
| Key | Type | Description |
|---|---|---|
| type | String | The string value "googleplayinstant_get_instant_app_data"
|
| success | Boolean | If the operation of successful or not. |
| exception | String |
This function will read app data into a buffer. You need to call googleplayinstant_get_instant_app_data and wait for its async event to trigger before calling this function. The return value is the amount of bytes read from the app data (-1 will represent the end of the stream and 0 will represent an error while reading).
Warning
The function will not resize the input buffer when reading from the file stream. You will need to make sure the length argument is valid in regards to the offset and the buffer size.
Syntax:
googleplayinstant_read_instant_app_data(offset, length, buffer_address)
| Argument | Type | Description |
|---|---|---|
| offset | Real | The offset to be used when writting to the buffer |
| length | Real | The number of bytes to read from the cached app data |
| buffer_address | Real | The return of buffer_get_address for a Id.Buffer |
Returns:
Shows a dialog that allows the user to install the current instant app.
This function operates asynchronously, which means that it does not immediately return the requested result. Instead, upon completion of the task, it will trigger the Social Async Event.
Syntax:
googleplayinstant_show_install_prompt()
Returns:
N/A
Triggers:
| Key | Type | Description |
|---|---|---|
| type | String | The string value "googleplayinstant_show_install_prompt"
|
YoYoGames 2025