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
Name | Syntax |
---|---|
registerListener | Registers an InAppNotificationCallback that will be notified when InAppNotification is displayed, action clicked, and dismissed. |
registerViewFactory | This method registers InAppNotification binder factories to be handled by this InAppNotificationManager. |
unregisterListener | Unregisters a previously registered InAppNotificationCallback instance. The instance will no longer receive InAppNotification display, action, and dismiss events. |
unregisterViewFactory | Unregisters 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:
Parameters | Type | Description |
---|---|---|
callback | InAppNotificationCallback | An 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:
Parameters | Type | Description |
---|---|---|
factory | InAppNotificationViewBinderFactory | Array 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:
Parameters | Type | Description |
---|---|---|
callback | InAppNotificationCallback | An 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:
Parameters | Type | Description |
---|---|---|
factory | InAppNotificationViewBinderFactory | Array of InAppNotification viewbinder factories to be Unregistered |
Updated about 1 month ago