| java.lang.Object | |
| ↳ | com.google.firebase.messaging.RemoteMessage |
A remote Firebase Message.
Messages will be received via onMessageReceived(RemoteMessage)
and can be sent via send(RemoteMessage).
Messages may have a RemoteMessage.Notification instance if they are received while the application is
in the foreground, otherwise they will be automatically posted to the notification tray.
Use the RemoteMessage.Builder class for building message instances to send via
send(RemoteMessage).
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| RemoteMessage.Builder | Builder object for constructing RemoteMessage instances. |
||||||||||
| RemoteMessage.Notification | Remote Firebase notification details. | ||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.google.android.gms.common.internal.safeparcel.SafeParcelable
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Get the collapse key of the message.
| |||||||||||
The message payload data.
| |||||||||||
Get the sender of this message.
| |||||||||||
Get the message's ID.
| |||||||||||
Get the type of message.
| |||||||||||
Get the message notification if any.
| |||||||||||
Get the time in milliseconds from the Epoch that the message was sent.
| |||||||||||
Get the message destination.
| |||||||||||
Get the message time to live (TTL) in seconds.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
Get the collapse key of the message.
The message payload data.
Get the sender of this message. This will be the sender ID or the topic for topic messages.
Get the message's ID. This will be the message ID set when sending the message or automatically generated by the server.
Get the type of message.
Get the message notification if any. This field will be non-null if a notification message is received while the application is in the foreground.
Get the time in milliseconds from the Epoch that the message was sent.
Get the message destination.
For upstream messages this will be of the form SENDER_ID@gcm.googleapis.com.
Get the message time to live (TTL) in seconds.