Difference between revisions of "FBInstant.updateAsync"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2018.3<br/> === Description === <br /> Informs Facebook of an update that occurred in the game. This will temporarily yield control to...")
 
Line 6: Line 6:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
= FBInstant.updateAsync(payloadcallback,)
+
FBInstant.updateAsync(payload,callback)
 
</source>
 
</source>
'''payload:''' (table) A payload that describes the update. ''''''<br/>
+
'''payload''': (table) A payload that describes the update. ''''''<br/>
'''callback:''' (function) A function that will be called with two arguments: True when Facebook gives control back to the game or nil if the operation failed, and an error code if the function failed. ''''''<br/>
+
'''callback''': (function) A function that will be called with two arguments: True when Facebook gives control back to the game or nil if the operation failed, and an error code if the function failed. ''''''<br/>

Revision as of 11:17, 23 August 2018

Available since: Gideros 2018.3

Description


Informs Facebook of an update that occurred in the game. This will temporarily yield control to Facebook and Facebook will decide what to do based on what the update is. The returned promise will resolve/reject when Facebook returns control to the game.

 FBInstant.updateAsync(payload,callback)

'payload: (table) A payload that describes the update. '
'callback: (function) A function that will be called with two arguments: True when Facebook gives control back to the game or nil if the operation failed, and an error code if the function failed. '