From Engineering Client Portal
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.
public static String getLastEvent()
|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.|
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.