FBInstant.context: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
<languages />
<!-- GIDEROSOBJ:FBInstant.context-->
<!-- GIDEROSOBJ:FBInstant.context-->
'''<translate>Supported platforms</translate>:''' [[File:Platform html5.png]]<br/>
'''<translate>Supported platforms</translate>:''' [[File:Platform html5.png]]<br/>
'''<translate>Available since</translate>:''' Gideros 2018.3<br/>
'''<translate>Available since</translate>:''' Gideros 2018.3<br/>
=== <translate>Description</translate> ===
=== <translate>Description</translate> ===
<translate><br />
Contains functions and properties related to the current game context.
Contains functions and properties related to the current game context.<br /></translate>
 
{|-
{|-
| style="width: 50%; vertical-align:top;"|
| style="width: 50%; vertical-align:top;"|
Line 17: Line 17:
[[Special:MyLanguage/FBInstant.context.isSizeBetween|FBInstant.context.isSizeBetween]] ''<translate>Determines whether the number of participants in the current game context is between a given minimum and maximum.</translate>''<br/><!-- GIDEROSMTD:FBInstant.context.isSizeBetween(minSize,maxSize) Determines whether the number of participants in the current game context is between a given minimum and maximum. -->
[[Special:MyLanguage/FBInstant.context.isSizeBetween|FBInstant.context.isSizeBetween]] ''<translate>Determines whether the number of participants in the current game context is between a given minimum and maximum.</translate>''<br/><!-- GIDEROSMTD:FBInstant.context.isSizeBetween(minSize,maxSize) Determines whether the number of participants in the current game context is between a given minimum and maximum. -->
[[Special:MyLanguage/FBInstant.context.switchAsync|FBInstant.context.switchAsync]] ''<translate>Request a switch into a specific context.</translate>''<br/><!-- GIDEROSMTD:FBInstant.context.switchAsync(id,callback) Request a switch into a specific context. -->
[[Special:MyLanguage/FBInstant.context.switchAsync|FBInstant.context.switchAsync]] ''<translate>Request a switch into a specific context.</translate>''<br/><!-- GIDEROSMTD:FBInstant.context.switchAsync(id,callback) Request a switch into a specific context. -->
| style="width: 50%; vertical-align:top;"|
| style="width: 50%; vertical-align:top;"|
=== <translate>Events</translate> ===
=== <translate>Events</translate> ===
Line 22: Line 23:
|}
|}


{{GIDEROS IMPORTANT LINKS}}
{{Facebook Instant Games}}

Latest revision as of 17:00, 25 March 2020

Supported platforms:
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