lastRecents

This function is called only if HeadConfig.isRecentsAvailable and HeadConfig.isNotifyRecentsEnabled are enabled, it's used to get the latest sublist of recents.

The system works like this:

Notes:

  • The Main app won't notify the first time it sends a request so if the item in the request is null you can send a response only containing the latest recent.

  • If the latest in the Response is null, the app will send the same latest in the next request.

  • The amount of notifications is limited to 5 per request, if the response contains more than 5 recents the Main app will only take the first 5 elements.

Return

The response containing the list of latest recents and the latest recent to record

Parameters

data

The request for latest recents