Difference between revisions of "FBInstant.player"

From GiderosMobile
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2018.3<br/> === Description === <br /> Contains functions and properties related to the current playe...")
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Supported platforms:''' <br/>
+
'''Supported platforms:''' html5<br/>
 
'''Available since:''' Gideros 2018.3<br/>
 
'''Available since:''' Gideros 2018.3<br/>
 
=== 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 ===
 +
[[FBInstant.player.canSubscribeBotAsync]] - Whether a player can subscribe to the game bot or not.<br/>
 +
[[FBInstant.player.flushDataAsync]] - Immediately flushes any changes to the player data to the designated cloud storage.<br/>
 +
[[FBInstant.player.getConnectedPlayersAsync]] - Fetches a table of ConnectedPlayer tables.<br/>
 +
[[FBInstant.player.getDataAsync]] - Retrieve data from the designated cloud storage of the current player.<br/>
 +
[[FBInstant.player.getID]] - A unique identifier for the player.<br/>
 +
[[FBInstant.player.getName]] - The player's localized display name.<br/>
 +
[[FBInstant.player.getPhoto]] - A url to the player's public profile photo.<br/>
 +
[[FBInstant.player.getSignedPlayerInfoAsync]] - Fetch the player's unique identifier along with a signature.<br/>
 +
[[FBInstant.player.getStatsAsync]] - Retrieve stats from the designated cloud storage of the current player.<br/>
 +
[[FBInstant.player.incrementStatsAsync]] - Increment stats saved in the designated cloud storage of the current player.<br/>
 +
[[FBInstant.player.setDataAsync]] - Set data to be saved to the designated cloud storage of the current player.<br/>
 +
[[FBInstant.player.setStatsAsync]] - Set stats to be saved to the designated cloud storage of the current player.<br/>
 +
[[FBInstant.player.subscribeBotAsync]] - Request that the player subscribe the bot associated to the game.<br/>
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}

Revision as of 08:57, 23 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