getLastEvent()

From Engineering Client Portal

Revision as of 07:31, 21 May 2017 by Admin (talk | contribs) (Created page with "{{Breadcrumb|}} {{Breadcrumb|Digital}} {{Breadcrumb|Android SDK API Reference}} {{CurrentBreadcrumb}} Category:Digital Category:Android SDK API Reference Queries the N...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Engineering Portal / Digital / Android SDK API Reference / 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.