Difference between revisions of "Flurry.logEvent"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
− | Use this function to count the number of times certain events happen during a session of your application and to pass dynamic parameters <br /> | + | <translate>Use this function to count the number of times certain events happen during a session of your application and to pass dynamic parameters <br /> |
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 <br /> | 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 <br /> | ||
occurrences for 100 different event ids (maximum length 255 characters). Maximum of 10 event parameters per event is supported.<br /> | occurrences for 100 different event ids (maximum length 255 characters). Maximum of 10 event parameters per event is supported.<br /> | ||
<br /> | <br /> | ||
− | To start a timed event, pass | + | To start a timed event, pass [[[timed` parameter as `true]]].<br /> |
− | <br /> | + | <br /></translate> |
<source lang="lua"> | <source lang="lua"> | ||
flurry.logEvent(eventName,parameters,timed) | flurry.logEvent(eventName,parameters,timed) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''eventName''': (string) The event name to be logged at Flurry service. <br/> | + | '''eventName''': (string) <translate>The event name to be logged at Flurry service.</translate> <br/> |
− | '''parameters''': (table, optional) Optional paramaters to be recorted with this event. <br/> | + | '''parameters''': (table, optional) <translate>Optional paramaters to be recorted with this event.</translate> <br/> |
− | '''timed''': (boolean, optional) Specifies this is a timed event. <br/> | + | '''timed''': (boolean, optional) <translate>Specifies this is a timed event.</translate> <br/> |
=== Examples === | === Examples === | ||
'''Example'''<br/> | '''Example'''<br/> | ||
− | <source lang="lua">flurry.logEvent("myEvent1") | + | <source lang="lua">flurry.logEvent("myEvent1") |
− | flurry.logEvent("myEvent2", {key="value"}) | + | flurry.logEvent("myEvent2", {key="value"}) |
− | flurry.logEvent("myEvent3", {key="value"}, true) | + | flurry.logEvent("myEvent3", {key="value"}, true)</source> |
Revision as of 13:38, 23 August 2018
Available since: Gideros 2011.6
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]]].
flurry.logEvent(eventName,parameters,timed)
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
flurry.logEvent("myEvent1")
flurry.logEvent("myEvent2", {key="value"})
flurry.logEvent("myEvent3", {key="value"}, true)