Difference between revisions of "Gaming:updateState"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''<translate>Available since</translate>:''' Gideros 2012.09<br/>
 
'''<translate>Available since</translate>:''' Gideros 2012.09<br/>
 +
'''<translate>Class</translate>:''' [[Special:MyLanguage/Gaming|Gaming]]<br/>
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
<translate>Update a data element in cloud storage. Either [[Special:MyLanguage/Event.STATE_ERROR|Event.STATE_ERROR]] or [[Special:MyLanguage/Event.STATE_CONFLICT|Event.STATE_CONFLICT]] will be triggered.</translate>
+
<translate>Update a data element in cloud storage. Either `Event.STATE_ERROR` or `Event.STATE_CONFLICT` will be triggered.</translate>
 
<source lang="lua">
 
<source lang="lua">
 
  Gaming:updateState(key,data,immediate)
 
  Gaming:updateState(key,data,immediate)

Revision as of 09:27, 24 August 2018

Available since: Gideros 2012.09
Class: Gaming

Description

Update a data element in cloud storage. Either `Event.STATE_ERROR` or `Event.STATE_CONFLICT` will be triggered.

 Gaming:updateState(key,data,immediate)

Parameters

key: (number) Key to update
data: (string) New data
immediate: (boolean) Push the update immediately