instantapp

Version: stable

FUNCTIONS
instantapp.show_install_prompt()
instantapp.is_instant_app()
instantapp.get_cookie_max_size()
instantapp.get_cookie()
instantapp.set_cookie()

Functions

instantapp.show_install_prompt()

instantapp.show_install_prompt()

Shows a dialog that allows the user to install the current instant app.

PARAMETERS

None


instantapp.is_instant_app()

instantapp.is_instant_app()

Checks if application loaded as instant experience.

PARAMETERS

None

RETURNS

boolean Returns true if this application is an instant app.

instantapp.get_cookie_max_size()

instantapp.get_cookie_max_size()

Gets the maximum size in bytes of the cookie data an instant app can store on the device.

PARAMETERS

None

RETURNS

number The maximum size in bytes of the cookie data an instant app can store on the device.

instantapp.get_cookie()

instantapp.get_cookie()

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

PARAMETERS

None

RETURNS

string The byte array data of cookies saved in instant application.

instantapp.set_cookie()

instantapp.set_cookie(bytes)

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

PARAMETERS

bytes string The byte array data will be saved in cookies for access in installable application.