Difference between revisions of "FBInstant.player"
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2018.3<br/> === Description === <br /> Contains functions and properties related to the current playe...") |
|||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Supported platforms:''' <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/> |
− | + | ||
− | Contains functions and properties related to the current player. | + | === <translate>Description</translate> === |
+ | Contains functions and properties related to the current player. | ||
+ | |||
{|- | {|- | ||
− | | style="width: 50%;"| | + | | style="width: 50%; vertical-align:top;"| |
− | === Methods === | + | === <translate>Methods</translate> === |
− | | style="width: 50%;"| | + | [[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. --> |
− | === Events === | + | [[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. --> |
− | === Constants === | + | [[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(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() 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() 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() 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(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(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(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(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(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(callback) Request that the player subscribe the bot associated to the game. --> | ||
+ | |||
+ | | style="width: 50%; vertical-align:top;"| | ||
+ | === <translate>Events</translate> === | ||
+ | === <translate>Constants</translate> === | ||
|} | |} | ||
+ | |||
+ | {{Facebook Instant Games}} |
Latest revision as of 18:01, 25 March 2020
Supported platforms:
Available since: Gideros 2018.3
Description
Contains functions and properties related to the current player.
MethodsFBInstant.player.canSubscribeBotAsync Whether a player can subscribe to the game bot or not. |
EventsConstants |