Difference between revisions of "Gaming:updateState"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.09<br/> === Description === Update a data element in cloud storage. Either `Event.STATE_ERROR` or `Event.STATE_CONFLICT` will be...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2012.09<br/>
+
<languages />
=== Description ===
+
'''<translate>Available since</translate>:''' Gideros 2012.09<br/>
Update a data element in cloud storage. Either `Event.STATE_ERROR` or `Event.STATE_CONFLICT` will be triggered.
+
'''<translate>Class</translate>:''' [[Special:MyLanguage/Gaming|Gaming]]<br/>
<source lang="lua">
+
=== <translate>Description</translate> ===
= Gaming:updateState(keydataimmediate,)
+
<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>
</source>
+
<syntaxhighlight lang="lua">
'''key:''' (number) Key to update ''''''<br/>
+
Gaming:updateState(key,data,immediate)
'''data:''' (string) New data ''''''<br/>
+
</syntaxhighlight>
'''immediate:''' (boolean) Push the update immediately ''''''<br/>
+
=== <translate>Parameters</translate> ===
 +
'''key''': (number) <translate>Key to update</translate> <br/>
 +
'''data''': (string) <translate>New data</translate> <br/>
 +
'''immediate''': (boolean) <translate>Push the update immediately</translate> <br/>
 +
 
 +
{{Gaming}}

Latest revision as of 14:29, 13 July 2023


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