FBInstant.setSessionData

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This page contains changes which are not marked for translation.


Available since: Gideros 2018.3
Class: * Initialisation and Core

Description


Sets the data associated with the individual gameplay session for the current context.

This function should be called whenever the game would like to update the current session data. This session data may be used to populate a variety of payloads, such as game play webhooks.

 FBInstant.setSessionData(sessionData)

Parameters

sessionData: (table) An arbitrary data table, which must be less than or equal to 1000 characters when stringified.

Examples

Example

FBInstant.setSessionData({coinsEarned=10,eventsSeen={"start","middle"}})
<br/>