onUserNotificationAction property
Stream<RetenoUserNotificationAction>
get
onUserNotificationAction
A static getter that provides a Stream of user notification actions. This Stream emits RetenoUserNotificationAction object RetenoUserNotificationAction
- Parameter
actionId: A unique identifier for the button action. - Parameter
customData: key-value pairs of additional parameters associated with the button - Parameter
link: An URL or a deeplink that opens when the notification is selected
Example usage:
Reteno.onUserNotificationAction.listen((action) {
// Handle the user notification action here
print("User notification action: $action");
});
Implementation
static Stream<RetenoUserNotificationAction> get onUserNotificationAction => _platform.onUserNotificationAction.stream;