Difference between revisions of "FBInstant.player"

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 player.<br /></translate>
 
Contains functions and properties related to the current player.<br /></translate>
 
{|-
 
{|-
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== Methods ===
+
=== <translate>Methods</translate> ===
 
[[Special:MyLanguage/FBInstant.player.canSubscribeBotAsync|FBInstant.player.canSubscribeBotAsync]] ''<translate>Whether a player can subscribe to the game bot or not.</translate>''<br/>
 
[[Special:MyLanguage/FBInstant.player.canSubscribeBotAsync|FBInstant.player.canSubscribeBotAsync]] ''<translate>Whether a player can subscribe to the game bot or not.</translate>''<br/>
 
[[Special:MyLanguage/FBInstant.player.flushDataAsync|FBInstant.player.flushDataAsync]] ''<translate>Immediately flushes any changes to the player data to the designated cloud storage.</translate>''<br/>
 
[[Special:MyLanguage/FBInstant.player.flushDataAsync|FBInstant.player.flushDataAsync]] ''<translate>Immediately flushes any changes to the player data to the designated cloud storage.</translate>''<br/>
Line 22: Line 22:
 
[[Special:MyLanguage/FBInstant.player.subscribeBotAsync|FBInstant.player.subscribeBotAsync]] ''<translate>Request that the player subscribe the bot associated to the game.</translate>''<br/>
 
[[Special:MyLanguage/FBInstant.player.subscribeBotAsync|FBInstant.player.subscribeBotAsync]] ''<translate>Request that the player subscribe the bot associated to the game.</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 08:29, 24 August 2018

Supported platforms: html5
Available since: Gideros 2018.3

Description


Contains functions and properties related to the current player.

Methods

FBInstant.player.canSubscribeBotAsync Whether a player can subscribe to the game bot or not.
FBInstant.player.flushDataAsync Immediately flushes any changes to the player data to the designated cloud storage.
FBInstant.player.getConnectedPlayersAsync Fetches a table of ConnectedPlayer tables.
FBInstant.player.getDataAsync Retrieve data from the designated cloud storage of the current player.
FBInstant.player.getID A unique identifier for the player.
FBInstant.player.getName The player's localized display name.
FBInstant.player.getPhoto A url to the player's public profile photo.
FBInstant.player.getSignedPlayerInfoAsync Fetch the player's unique identifier along with a signature.
FBInstant.player.getStatsAsync Retrieve stats from the designated cloud storage of the current player.
FBInstant.player.incrementStatsAsync Increment stats saved in the designated cloud storage of the current player.
FBInstant.player.setDataAsync Set data to be saved to the designated cloud storage of the current player.
FBInstant.player.setStatsAsync Set stats to be saved to the designated cloud storage of the current player.
FBInstant.player.subscribeBotAsync Request that the player subscribe the bot associated to the game.

Events

Constants