InAppNotificationManager

Interface is to display the InAppNotificationViewBinder instances for the given push message data.

This interface is to display the InAppNotificationViewBinder instances for the given push message data. Also provides an interface to register notificationView callback for listening to the Notification view events like display, action, and dismiss.

Syntax: interface InAppNotificationManager

Functions

NameSyntax
registerListenerRegisters an InAppNotificationCallback that will be notified when InAppNotification is displayed, action clicked, and dismissed.
registerViewFactoryThis method registers InAppNotification binder factories to be handled by this InAppNotificationManager.
unregisterListenerUnregisters a previously registered InAppNotificationCallback instance. The instance will no longer receive InAppNotification display, action, and dismiss events.
unregisterViewFactoryUnregisters a previously registered InAppNotification binder factory for this InAppNotificationManager.

registerListener

Registers an InAppNotificationCallback that will be notified when InAppNotification is displayed, action clicked, and dismissed.

Syntax: abstract fun registerListener(callback: InAppNotificationCallback)

Parameters:

ParametersTypeDescription
callbackInAppNotificationCallbackAn instance of InAppNotificationCallback will be registered to receive notifications about InApp notification events.

registerViewFactory

This method registers InAppNotification binder factories to be handled by this InAppNotificationManager.

Syntax: abstract fun registerViewFactory(factory: InAppNotificationViewBinderFactory)

Parameters:

ParametersTypeDescription
factoryInAppNotificationViewBinderFactoryArray of InAppNotification view binder factories to be registered

unregisterListener

Unregisters a previously registered InAppNotificationCallback instance. The instance will no longer receive InAppNotification display, action, and dismiss events.

Syntax: abstract fun unregisterListener(callback: InAppNotificationCallback)

Parameters:

ParametersTypeDescription
callbackInAppNotificationCallbackAn instance of InAppNotificationCallback will be unregistered from receiving notifications about InApp notification events.

unregisterViewFactory

This method unregisters previously registered InAppNotification binder factories for this InAppNotificationManager.

Syntax: abstract fun unregisterViewFactory(factory: InAppNotificationViewBinderFactory)

Parameters:

ParametersTypeDescription
factoryInAppNotificationViewBinderFactoryArray of InAppNotification viewbinder factories to be Unregistered