Optional
events[Optional] A function called when events are discarded.
The array of events that have been discarded.
The reason for discarding the events. The EventsDiscardedReason constant should be used to check the different values.
Optional
events[Optional] A function called when the events have been requested to be sent to the sever.
The reason why the event batch is being sent.
Optional
isAsync: booleanA flag which identifies whether the requests are being sent in an async or sync manner.
Optional
events[Optional] A function called when events are sent.
The array of events that have been sent.
Optional
perf[Optional] This event is sent if you have enabled perf events, they are primarily used to track internal performance testing and debugging the event can be displayed via the debug plugin extension.
Optional
offlineOptional
offline[Optional] A function called when the offline events have been sent from the persistent storage
payload data that is sent from the persistent storage
Optional
offline[Optional] A function called when the offline events have been stored to the persistent storage
items that are stored in the persistent storage
Optional
unloadUnload and remove any state that this INotificationListener may be holding, this is generally called when the owning Manager is being unloaded.
Optional
isAsync: booleanCan the unload be performed asynchronously (default)
If the unload occurs synchronously then nothing should be returned, if happening asynchronously then the function should return an IPromise / Promise to allow any listeners to wait for the operation to complete.
An interface used for the notification listener.
Interface