Optional
config: IConfigurationAdds a notification listener.
The notification listener to be added.
Notification for events being discarded.
The array of events that have been discarded by the SDK.
The reason for which the SDK discarded 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.
A flag which identifies whether the requests are being sent in an async or sync manner.
Notification for events sent.
The array of events that have been sent.
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
events that are stored in the persistent storage
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.
The performance event object containing relevant performance data.
Removes all instances of the listener.
AWTNotificationListener to remove.
Optional
unloadUnload and remove any state that this INotificationManager may be holding, this is generally called when the owning SDK 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.
Class to manage sending notifications to all the listeners.