Difference between revisions of "Flurry.logEvent"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 10: Line 10:
 
To start a timed event, pass ''timed'' parameter as ''true''.<br />
 
To start a timed event, pass ''timed'' parameter as ''true''.<br />
 
<br /></translate>
 
<br /></translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
  flurry.logEvent(eventName,parameters,timed)
 
  flurry.logEvent(eventName,parameters,timed)
 
</source>
 
</source>
Line 19: Line 19:
 
=== <translate>Examples</translate> ===
 
=== <translate>Examples</translate> ===
 
'''Example'''<br/>
 
'''Example'''<br/>
<source lang="lua">flurry.logEvent(&quot;myEvent1&quot;)
+
<syntaxhighlight lang="lua">flurry.logEvent(&quot;myEvent1&quot;)
 
flurry.logEvent(&quot;myEvent2&quot;, {key=&quot;value&quot;})
 
flurry.logEvent(&quot;myEvent2&quot;, {key=&quot;value&quot;})
 
flurry.logEvent(&quot;myEvent3&quot;, {key=&quot;value&quot;}, true)</source>
 
flurry.logEvent(&quot;myEvent3&quot;, {key=&quot;value&quot;}, true)</source>
  
 
{{Flurry}}
 
{{Flurry}}

Revision as of 15:28, 13 July 2023


Available since: Gideros 2011.6
Class: flurry

Description

Use this function to count the number of times certain events happen during a session of your application and to pass dynamic parameters
to be recorded with that event. Event parameters is optional and can be passed in as a table value. Your application is currently limited to counting
occurrences for 100 different event ids (maximum length 255 characters). Maximum of 10 event parameters per event is supported.

To start a timed event, pass timed parameter as true.

<syntaxhighlight lang="lua">

flurry.logEvent(eventName,parameters,timed)

</source>

Parameters

eventName: (string) The event name to be logged at Flurry service.
parameters: (table, optional) Optional paramaters to be recorted with this event.
timed: (boolean, optional) Specifies this is a timed event.

Examples

Example
<syntaxhighlight lang="lua">flurry.logEvent("myEvent1") flurry.logEvent("myEvent2", {key="value"}) flurry.logEvent("myEvent3", {key="value"}, true)</source>