Difference between revisions of "FBInstant.player"

From GiderosMobile
Line 10: Line 10:
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== <translate>Methods</translate> ===
 
=== <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/><!-- GIDEROSMTD:FBInstant.player.canSubscribeBotAsync -->
+
[[Special:MyLanguage/FBInstant.player.canSubscribeBotAsync|FBInstant.player.canSubscribeBotAsync]] ''<translate>Whether a player can subscribe to the game bot or not.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.canSubscribeBotAsync(callback) Whether a player can subscribe to the game bot or not. -->
[[Special:MyLanguage/FBInstant.player.flushDataAsync|FBInstant.player.flushDataAsync]] ''<translate>Immediately flushes any changes to the player data to the designated cloud storage.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.flushDataAsync -->
+
[[Special:MyLanguage/FBInstant.player.flushDataAsync|FBInstant.player.flushDataAsync]] ''<translate>Immediately flushes any changes to the player data to the designated cloud storage.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.flushDataAsync(callback) Immediately flushes any changes to the player data to the designated cloud storage. -->
[[Special:MyLanguage/FBInstant.player.getConnectedPlayersAsync|FBInstant.player.getConnectedPlayersAsync]] ''<translate>Fetches a table of ConnectedPlayer tables.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.getConnectedPlayersAsync -->
+
[[Special:MyLanguage/FBInstant.player.getConnectedPlayersAsync|FBInstant.player.getConnectedPlayersAsync]] ''<translate>Fetches a table of ConnectedPlayer tables.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.getConnectedPlayersAsync(callback) Fetches a table of ConnectedPlayer tables. -->
[[Special:MyLanguage/FBInstant.player.getDataAsync|FBInstant.player.getDataAsync]] ''<translate>Retrieve data from the designated cloud storage of the current player.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.getDataAsync -->
+
[[Special:MyLanguage/FBInstant.player.getDataAsync|FBInstant.player.getDataAsync]] ''<translate>Retrieve data from the designated cloud storage of the current player.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.getDataAsync(keys,callback) Retrieve data from the designated cloud storage of the current player. -->
[[Special:MyLanguage/FBInstant.player.getID|FBInstant.player.getID]] ''<translate>A unique identifier for the player.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.getID -->
+
[[Special:MyLanguage/FBInstant.player.getID|FBInstant.player.getID]] ''<translate>A unique identifier for the player.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.getID() A unique identifier for the player. -->
[[Special:MyLanguage/FBInstant.player.getName|FBInstant.player.getName]] ''<translate>The player's localized display name.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.getName -->
+
[[Special:MyLanguage/FBInstant.player.getName|FBInstant.player.getName]] ''<translate>The player's localized display name.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.getName() The player's localized display name. -->
[[Special:MyLanguage/FBInstant.player.getPhoto|FBInstant.player.getPhoto]] ''<translate>A url to the player's public profile photo.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.getPhoto -->
+
[[Special:MyLanguage/FBInstant.player.getPhoto|FBInstant.player.getPhoto]] ''<translate>A url to the player's public profile photo.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.getPhoto() A url to the player's public profile photo. -->
[[Special:MyLanguage/FBInstant.player.getSignedPlayerInfoAsync|FBInstant.player.getSignedPlayerInfoAsync]] ''<translate>Fetch the player's unique identifier along with a signature.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.getSignedPlayerInfoAsync -->
+
[[Special:MyLanguage/FBInstant.player.getSignedPlayerInfoAsync|FBInstant.player.getSignedPlayerInfoAsync]] ''<translate>Fetch the player's unique identifier along with a signature.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.getSignedPlayerInfoAsync(requestPayload,callback) Fetch the player's unique identifier along with a signature. -->
[[Special:MyLanguage/FBInstant.player.getStatsAsync|FBInstant.player.getStatsAsync]] ''<translate>Retrieve stats from the designated cloud storage of the current player.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.getStatsAsync -->
+
[[Special:MyLanguage/FBInstant.player.getStatsAsync|FBInstant.player.getStatsAsync]] ''<translate>Retrieve stats from the designated cloud storage of the current player.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.getStatsAsync(keys,callback) Retrieve stats from the designated cloud storage of the current player. -->
[[Special:MyLanguage/FBInstant.player.incrementStatsAsync|FBInstant.player.incrementStatsAsync]] ''<translate>Increment stats saved in the designated cloud storage of the current player.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.incrementStatsAsync -->
+
[[Special:MyLanguage/FBInstant.player.incrementStatsAsync|FBInstant.player.incrementStatsAsync]] ''<translate>Increment stats saved in the designated cloud storage of the current player.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.incrementStatsAsync(keys-value-pairs,callback) Increment stats saved in the designated cloud storage of the current player. -->
[[Special:MyLanguage/FBInstant.player.setDataAsync|FBInstant.player.setDataAsync]] ''<translate>Set data to be saved to the designated cloud storage of the current player.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.setDataAsync -->
+
[[Special:MyLanguage/FBInstant.player.setDataAsync|FBInstant.player.setDataAsync]] ''<translate>Set data to be saved to the designated cloud storage of the current player.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.setDataAsync(keys-value-pairs,callback) Set data to be saved to the designated cloud storage of the current player. -->
[[Special:MyLanguage/FBInstant.player.setStatsAsync|FBInstant.player.setStatsAsync]] ''<translate>Set stats to be saved to the designated cloud storage of the current player.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.setStatsAsync -->
+
[[Special:MyLanguage/FBInstant.player.setStatsAsync|FBInstant.player.setStatsAsync]] ''<translate>Set stats to be saved to the designated cloud storage of the current player.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.setStatsAsync(keys-value-pairs,callback) Set stats to be saved to the designated cloud storage of the current player. -->
[[Special:MyLanguage/FBInstant.player.subscribeBotAsync|FBInstant.player.subscribeBotAsync]] ''<translate>Request that the player subscribe the bot associated to the game.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.subscribeBotAsync -->
+
[[Special:MyLanguage/FBInstant.player.subscribeBotAsync|FBInstant.player.subscribeBotAsync]] ''<translate>Request that the player subscribe the bot associated to the game.</translate>''<br/><!-- GIDEROSMTD:FBInstant.player.subscribeBotAsync(callback) Request that the player subscribe the bot associated to the game. -->
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== <translate>Events</translate> ===
 
=== <translate>Events</translate> ===
 
=== <translate>Constants</translate> ===
 
=== <translate>Constants</translate> ===
 
|}
 
|}

Revision as of 16:31, 13 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