getLastEvent()

From Engineering Client Portal

Engineering Portal breadcrumbArrow.png Digital breadcrumbArrow.png Android SDK API Reference breadcrumbArrow.png getLastEvent()
Queries the NielsenAppApi framework for the last event that occurred. The getLastEvent() allows the player application to query the NielsenAppApi Class for details on the last event that occurred.

Syntax

public static String getLastEvent()

Input Parameters

Parameter Description
None

Output Parameters

Output Parameters (Return value) Description
Returns a JSON string object with the following event information.
eventCode An integer which specifies the Nielsen AppSdk event code and when it occurred.
eventDescription A String object that describes the actual event.
timestamp A timestamp object containing a time stamp at which the last event occurred.

Notes

The getLastEvent() contains descriptive information about the event that occurred, which is predefined by the Nielsen App SDK and the time it occurred. Refer to Events and Error Handling section for more details.