| java.lang.Object | |
| ↳ | com.google.firebase.messaging.Notification |
Represents the notification parameters that can be included in a Message. Instances
of this class are thread-safe and immutable.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| class | Notification.Builder | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Notification(String title, String body)
This constructor is deprecated.
Use #Notification(Builder) instead.
| |||||||||||
|
Notification(String title, String body, String imageUrl)
This constructor is deprecated.
Use #Notification(Builder) instead.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static Notification.Builder |
builder()
Creates a new
Notification.Builder. | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
This constructor is deprecated.
Use #Notification(Builder) instead.
Creates a new Notification using the given title and body.
| title | Title of the notification. |
|---|---|
| body | Body of the notification. |
This constructor is deprecated.
Use #Notification(Builder) instead.
Creates a new Notification using the given title, body, and image.
| title | Title of the notification. |
|---|---|
| body | Body of the notification. |
| imageUrl | URL of the image that is going to be displayed in the notification. |
Creates a new Notification.Builder.
Notification.Builder instance.