Difference between revisions of "FBInstant.context"

From GiderosMobile
Line 2: Line 2:
 
'''Supported platforms:''' html5<br/>
 
'''Supported platforms:''' html5<br/>
 
'''Available since:''' Gideros 2018.3<br/>
 
'''Available since:''' Gideros 2018.3<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate><br />
 
<translate><br />
 
Contains functions and properties related to the current game context.<br /></translate>
 
Contains functions and properties related to the current game context.<br /></translate>
 
{|-
 
{|-
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== Methods ===
+
=== <translate>Methods</translate> ===
 
[[Special:MyLanguage/FBInstant.context.chooseAsync|FBInstant.context.chooseAsync]] ''<translate>Opens a context selection dialog for the player.</translate>''<br/>
 
[[Special:MyLanguage/FBInstant.context.chooseAsync|FBInstant.context.chooseAsync]] ''<translate>Opens a context selection dialog for the player.</translate>''<br/>
 
[[Special:MyLanguage/FBInstant.context.createAsync|FBInstant.context.createAsync]] ''<translate>Attempts to create or switch into a context between a specified player and the current player.</translate>''<br/>
 
[[Special:MyLanguage/FBInstant.context.createAsync|FBInstant.context.createAsync]] ''<translate>Attempts to create or switch into a context between a specified player and the current player.</translate>''<br/>
Line 16: Line 16:
 
[[Special:MyLanguage/FBInstant.context.switchAsync|FBInstant.context.switchAsync]] ''<translate>Request a switch into a specific context.</translate>''<br/>
 
[[Special:MyLanguage/FBInstant.context.switchAsync|FBInstant.context.switchAsync]] ''<translate>Request a switch into a specific context.</translate>''<br/>
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== Events ===
+
=== <translate>Events</translate> ===
=== Constants ===
+
=== <translate>Constants</translate> ===
 
|}
 
|}

Revision as of 07:28, 24 August 2018

Supported platforms: html5
Available since: Gideros 2018.3

Description


Contains functions and properties related to the current game context.

Methods

FBInstant.context.chooseAsync Opens a context selection dialog for the player.
FBInstant.context.createAsync Attempts to create or switch into a context between a specified player and the current player.
FBInstant.context.getID A unique identifier for the current game context.
FBInstant.context.getPlayersAsync Gets an table of #contextplayer objects containing information about active players.
FBInstant.context.getType The type of the current game context.
FBInstant.context.isSizeBetween Determines whether the number of participants in the current game context is between a given minimum and maximum.
FBInstant.context.switchAsync Request a switch into a specific context.

Events

Constants