standard.getLastNotificationInteractions
Report all user interactions with notifications since last call to this function.
Syntax
ui.Interface.frontCall("standard", "getLastNotificationInteractions",
[], [notifications] )
- notifications - Is a
DYNAMIC ARRAY OF RECORDdefined as follows:- id
STRING- Identifies a notification created by acreateNotificationfrontcall. - type
STRING- Indicates the type of action taken by the end user. Values can be:"selected"or"deleted".
- id
Usage
The "getLastNotificationInteractions" front call returns a list of notification
ids, with the corresponding user interaction that has been done (selected or deleted)
If no notification has been selected or deleted by the user since the last call,
NULL is returned.
This front call can be used after receiving a notificationselected predefined action, or when starting the applications,
to detect if notifications have been deleted or selected while the app was not running.
id and the
type properties. The returned JSON string can be automatically converted to a
dynamic array defined as follows:TYPE t_nl DYNAMIC ARRAY OF RECORD
id STRING,
type STRING
END RECORD
DEFINE nl t_nl The type defines how the user processed a notification. Values can be
"selected" or "deleted" of the last notifications which has been selected or deleted by the user
since the last time this frontcall has been called.
Example
TYPE t_nl DYNAMIC ARRAY OF RECORD
id STRING,
type STRING
END RECORD
DEFINE nl t_nl
...
ON ACTION notificationselected
CALL ui.Interface.frontCall("standard",
"getLastNotificationInteractions",[],[nl])
...