Difference between revisions of "FBInstant.player.getConnectedPlayersAsync"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2018.3<br/> === Description === <br /> Fetches a table of ConnectedPlayer tables containing information about players that are connect...")
 
Line 6: Line 6:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
= FBInstant.player.getConnectedPlayersAsync(callback,)
+
FBInstant.player.getConnectedPlayersAsync(callback)
 
</source>
 
</source>
'''callback:''' (function) A function that will be called with two arguments: a set of key-value pairs or nil is the operation failed, and an error code if the function failed.  NOTE: This promise will not resolve until FBInstant.startGameAsync() has resolved. ''''''<br/>
+
'''callback''': (function) A function that will be called with two arguments: a set of key-value pairs or nil is the operation failed, and an error code if the function failed.  NOTE: This promise will not resolve until FBInstant.startGameAsync() has resolved. ''''''<br/>

Revision as of 10:16, 23 August 2018

Available since: Gideros 2018.3

Description


Fetches a table of ConnectedPlayer tables containing information about players that are connected to the current player.

 FBInstant.player.getConnectedPlayersAsync(callback)

'callback: (function) A function that will be called with two arguments: a set of key-value pairs or nil is the operation failed, and an error code if the function failed. NOTE: This promise will not resolve until FBInstant.startGameAsync() has resolved. '