| java.lang.Object | |
| ↳ | com.google.firebase.messaging.Notification.Builder |
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Notification |
build()
Creates a new
Notification instance from the parameters set on this builder. | ||||||||||
| Notification.Builder |
setBody(String body)
Sets the body of the notification.
| ||||||||||
| Notification.Builder |
setImage(String imageUrl)
Sets the URL of the image that is going to be displayed in the notification.
| ||||||||||
| Notification.Builder |
setTitle(String title)
Sets the title of the notification.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a new Notification instance from the parameters set on this builder.
Notification instance.| IllegalArgumentException | If any of the parameters set on the builder are invalid. |
|---|
Sets the body of the notification.
| body | Body of the notification. |
|---|
Sets the URL of the image that is going to be displayed in the notification.
| imageUrl | URL of the image that is going to be displayed in the notification. |
|---|
Sets the title of the notification.
| title | Title of the notification. |
|---|