instantapp

Version: stable

FUNCTION
show_install_prompt()
is_instant_app()
get_cookie_max_size()
get_cookie()
set_cookie()

Functions

show_install_prompt()

show_install_prompt()

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

PARAMETERS

None


is_instant_app()

is_instant_app()

Checks if application loaded as instant experience.

PARAMETERS

None

RETURNS

boolean Returns true if this application is an instant app.

get_cookie_max_size()

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.

get_cookie()

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.

set_cookie()

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.