Difference between revisions of "FBInstant.player"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
<languages />
 
<!-- GIDEROSOBJ:Player -->
 
<!-- GIDEROSOBJ:Player -->
 
'''<translate>Supported platforms</translate>:''' [[File:Platform html5.png]]<br/>
 
'''<translate>Supported platforms</translate>:''' [[File:Platform html5.png]]<br/>

Revision as of 09:57, 3 September 2018


Supported platforms: Platform html5.png
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