Difference between revisions of "FBInstant.player"

From GiderosMobile
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Supported platforms:''' html5<br/>
+
<!-- GIDEROSOBJ:FBInstant.player -->
'''Available since:''' Gideros 2018.3<br/>
+
'''<translate>Supported platforms</translate>:''' [[File:Platform html5.png]]<br/>
=== Description ===
+
'''<translate>Available since</translate>:''' Gideros 2018.3<br/>
<translate><br />
+
 
Contains functions and properties related to the current player.<br /></translate>
+
=== <translate>Description</translate> ===
 +
Contains functions and properties related to the current player.
 +
 
 
{|-
 
{|-
 
| 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/><!-- 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/>
+
[[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/>
+
[[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/>
+
[[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/>
+
[[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/>
+
[[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/>
+
[[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/>
+
[[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/>
+
[[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/>
+
[[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/>
+
[[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/>
+
[[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/>
+
[[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;"|
=== Events ===
+
=== <translate>Events</translate> ===
=== Constants ===
+
=== <translate>Constants</translate> ===
 
|}
 
|}
 +
 +
{{Facebook Instant Games}}

Latest revision as of 18:01, 25 March 2020

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