FBInstant.context.switchAsync

From GiderosMobile
Revision as of 11:04, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2018.3<br/> === Description === <br /> Request a switch into a specific context. If the player does not have permission to enter that...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2018.3

Description


Request a switch into a specific context. If the player does not have permission to enter that context, or if the player does not provide permission for the game to enter that context, this will reject. Otherwise, the promise will resolve when the game has switched into the specified context.

= FBInstant.context.switchAsync(idcallback,)

'id: (string) ID of the desired context. '
'callback: (function) A function that will be called with two arguments: true when the game has switched into the specified context or nil if the operation failed, and an error code if the function failed. '