Difference between revisions of "FBInstant.player"

From GiderosMobile
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
<br />
 
<br />
Contains functions and properties related to the current player.<br />
+
Contains functions and properties related to the current player.<br />{|-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{|-
 
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Methods ===
 
=== Methods ===

Revision as of 10:12, 23 August 2018

Supported platforms: html5
Available since: Gideros 2018.3

Description


Contains functions and properties related to the current player.
{|- | style="width: 50%;"|

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.
| style="width: 50%;"|

Events

Constants

|}