flurryAnalytics.endTimedEvent()

Type Function
Return value none
Revision Release 2024.3703
Keywords analytics, Flurry Analytics, endTimedEvent
See also flurryAnalytics.startTimedEvent()
flurryAnalytics.*

Overview

Use this function to explicitly end a timed event which was started with flurryAnalytics.startTimedEvent(). Additional event parameters can be passed as key-value pairs within a table.

Note that all timed events end automatically when the app exits.

Syntax

flurryAnalytics.endTimedEvent( event [, params] )
event (required)

String. The timed event to end.

params (optional)

Table. Table containing optional values associated with the event.

Example

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" } )

-- Sometime later, end the timed event
flurryAnalytics.endTimedEvent( "Level 1", { skill="Beginner" } )