Listener

interface Listener

Deprecated

Split into KMPNotifier.Listener (shared events: clicks, actions) and PushListener in kmpnotifier-push-firebase (push events). See MIGRATION.md.

Deprecated 1.x listener carrying both shared and push events.

Replaced by com.mmk.kmpnotifier.KMPNotifier.Listener (clicks, actions — fired for both local and push notifications) and PushListener in kmpnotifier-push-firebase (token updates, push payloads).

Functions

Link copied to clipboard
open fun onAction(actionId: String, notificationId: Int, payload: Map<String, Any?>)

Called when a notification action is triggered

Link copied to clipboard
open fun onNewToken(token: String)

Called when push notification token is updated, or initialized first time

Link copied to clipboard

Called when notification is clicked

Link copied to clipboard
open fun onPayloadData(data: PayloadData)

Called when "Push Notification" data type message is available

Link copied to clipboard
open fun onPushNotification(title: String?, body: String?)

Called when "Push Notification" notification type message is received.

Link copied to clipboard

Called when "Push Notification" is received.