Methods
getNavigateParameters() → {*}
Get the parameters in the loaded game that were passed to navigateTo.
- Source:
Returns:
- Type
- *
navigateHome()
Request that all devices return to the AirConsole store.
- Source:
navigateTo(url, parameters)
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: