PushNotificationEvents class abstract

Push Notification events, such as message arriving or notification tap.

Constructors

PushNotificationEvents()

Properties

hashCode int
The hash code for this object.
no setterinherited
notificationTapLaunchedAppFromTerminated Future<RemoteMessage?>
Future resolves to a notification that was tapped and caused the app to launch from from a terminated state. Returns null if app was not launched from a notification.
no setter
onMessage Stream<RemoteMessage>
A stream that emmits messages while the app is in the foreground.
no setter
onNotificationTap Stream<RemoteMessage>
A stream that emmits a message whenever a notification is tapped while the app is already in the foreground or in the background.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setOnBackgroundMessage(BackgroundMessageHandler handler) → void
A method that allows you to set a callback that's called whenever a notification or a data message is received by the device.
setOnOpenSettings(VoidCallback callback) → void
A method that allows you to set a callback that's called whenever a user visits the "In-app settings": iOS Settings > App Name > Notifications > "Customize in App"
setOnShowNotificationInForeground(Future<bool> callback(RemoteMessage message)) → void
Whether notifications are shown when the app is in the foreground. By default, no notifications are shown when the app is in the foreground.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited