ChromeGcm class

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
no setter
maxMessageSize int
The maximum size (in bytes) of all key/value pairs in a message.
no setter
onMessage EventStream<OnMessageMessage>
Fired when a message is received through FCM.
no setter
onMessagesDeleted EventStream<void>
Fired when a FCM server had to delete messages sent by an app server to the application. See Lifetime of a message for details on handling this event.
no setter
onSendError EventStream<OnSendErrorError>
Fired when it was not possible to send a message to the FCM server.
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
register(List<String> senderIds) Future<String>
Registers the application with FCM. The registration ID will be returned by the callback. If register is called again with the same list of senderIds, the same registration ID will be returned. senderIds A list of server IDs that are allowed to send messages to the application. It should contain at least one and no more than 100 sender IDs. returns Function called when registration completes. It should check runtime.lastError for error when registrationId is empty.
send(SendMessage message) Future<String>
Sends a message according to its contents. message A message to send to the other party via FCM. returns A function called after the message is successfully queued for sending. runtime.lastError should be checked, to ensure a message was sent without problems.
toString() String
A string representation of this object.
inherited
unregister() Future<void>
Unregisters the application from FCM. returns A function called after the unregistration completes. Unregistration was successful if runtime.lastError is not set.

Operators

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