RemoteMessaging class abstract

An abstract class that provides the ability to monitor state changes of RemoteMessage. For each feature that provides remote messages, create a RemoteMessaging that inherits from this class.

Inheritance
Implementers

Constructors

RemoteMessaging()

Properties

app App<Object>
The App referenced by the plugin.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
messages Stream<RemoteMessage>
A Stream for observing the results of notified messages messages.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokens Stream<String?>
A Stream for observing the results of the notified tokens.
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Disposes of the RemoteMessaging object. See ChangeNotifier.dispose for details.
override
getInitialMessage() Future<RemoteMessage?>
Future for the message when the app is opened via Remote Message.
getToken() Future<String?>
Obtains a token to identify the app's installation. This token can be used when you want to send notifications from other services to your own app.
ignoreChannel(String channel) FutureOr<bool>
Ignore the channel name channel to stop receiving messages from this channel.
init(App<Object> app) Future<void>
Initializes the RemoteMessaging.
listenChannel(String channel) FutureOr<bool>
Whether the channel name channel is registered to for receiving messages.
listeningToChannel(String channel) bool
Determine whether the channel name channel is registered to for receiving messages.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() String
A string representation of this object.
inherited

Operators

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