Type Function Return value none Revision Release 2024.3703 Keywords analytics, Flurry Analytics, startTimedEvent See also flurryAnalytics.endTimedEvent() flurryAnalytics.logEvent() flurryAnalytics.*
Use this function to start a timed event. This can be useful to determine how long a user stays within a certain section of your app, for example a game level. Additional event parameters can be passed as
Timed events can be ended via the flurryAnalytics.endTimedEvent() function.
flurryAnalytics.startTimedEvent( event [, params] )
String. The timed event to start.
Table. Table containing optional values associated with the event.
local flurryAnalytics = require( "plugin.flurry.analytics" ) local function flurryListener( event ) if ( event.phase == "init" ) then -- Successful initialization print( event.provider ) end end -- Initialize the Flurry plugin flurryAnalytics.init( flurryListener, { apiKey="YOUR_API_KEY" } ) -- Start a timed event flurryAnalytics.startTimedEvent( "Level 1", { skill="Beginner" } )