Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Francisco Dias edited this page Oct 1, 2025 · 3 revisions

Google Play Instant

Functions

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.



Back To Top

googleplayinstant_is_instant_app

Checks if application loaded as instant experience.


Syntax:

googleplayinstant_is_instant_app()



Returns:

Real




Back To Top

googleplayinstant_set_instant_app_cookie

Save byte array in cookies to be able get access to this data in installable application.


Syntax:

googleplayinstant_set_instant_app_cookie()



Returns:

Real




Back To Top

googleplayinstant_get_instant_app_cookie_max_size

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:

Real




Back To Top

googleplayinstant_get_instant_app_cookie

Load byte array from cookies that were saved in instant application.


Syntax:

googleplayinstant_get_instant_app_cookie()



Returns:

String




Back To Top

googleplayinstant_get_instant_app_data

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:

Social Async Event

Key Type Description
type String The string value "googleplayinstant_get_instant_app_data"
success Boolean If the operation of successful or not.
exception String



Back To Top

googleplayinstant_read_instant_app_data

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:

Boolean




Back To Top

googleplayinstant_show_install_prompt

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:

Social Async Event

Key Type Description
type String The string value "googleplayinstant_show_install_prompt"