Difference between revisions of "FBInstant.player"

From GiderosMobile
m
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
 
 
<!-- GIDEROSOBJ:FBInstant.player -->
 
<!-- GIDEROSOBJ:FBInstant.player -->
 
'''<translate>Supported platforms</translate>:''' [[File:Platform html5.png]]<br/>
 
'''<translate>Supported platforms</translate>:''' [[File:Platform html5.png]]<br/>
 
'''<translate>Available since</translate>:''' Gideros 2018.3<br/>
 
'''<translate>Available since</translate>:''' Gideros 2018.3<br/>
 +
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
<translate><br />
+
Contains functions and properties related to the current player.
Contains functions and properties related to the current player.<br /></translate>
+
 
 
{|-
 
{|-
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
Line 23: Line 23:
 
[[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.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. -->
 
[[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> ===
Line 28: Line 29:
 
|}
 
|}
  
 +
{{Gideros deco stars01}}
 +
*'''[[Facebook_Instant_Games]]'''
 
{{GIDEROS IMPORTANT LINKS}}
 
{{GIDEROS IMPORTANT LINKS}}

Revision as of 18:46, 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