↳ Navigation

AirConsole

new AirConsole(opts) → {AirConsoleObject}

Your gateway object to AirConsole. There are getter and setter functions for all properties. Do not access properties of this object directly.
Parameters:
Name Type Description
opts AirConsole~Config Constructor config, see bellow.
Source:
Returns:
The AirConsole object.
Type
AirConsoleObject

Methods

getNavigateParameters() → {*}

Get the parameters in the loaded game that were passed to navigateTo.
Source:
Returns:
Type
*
Request that all devices return to the AirConsole store.
Source:
Request that all devices load a game by url or game id.
Parameters:
Name Type Description
url string The base url of the game to navigate to (excluding screen.html or controller.html). Instead of a url you may also pass a game id. You can also navigate relatively to your current game directory: To navigate to a subdirectory, pass "./DIRECTORY_NAME". To navigate to a parent directory pass "..".
parameters object You can pass parameters to the game that gets loaded. Any jsonizable object is fine. The parameters will be appended to the url using a url hash.
Source:

openExternalUrl(url)

Opens url in external (default-system) browser. Call this method instead of calling window.open. In-App it will open the system's default browser. Because of Safari iOS you can only use it with the onclick handler:
Open browser
OR in JS with assigning element.onclick.
Parameters:
Name Type Description
url string The url to open
Source: