| java.lang.Object | |
| ↳ | com.google.firebase.messaging.WebpushNotification |
Represents the Webpush-specific notification options that can be included in a Message.
Instances of this class are thread-safe and immutable. Supports most standard options defined
in the Web
Notification specification.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| class | WebpushNotification.Action | Represents an action available to users when the notification is presented. | |||||||||
| class | WebpushNotification.Builder | ||||||||||
| enum | WebpushNotification.Direction | Different directions a notification can be displayed in. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
WebpushNotification(String title, String body)
Creates a new notification with the given title and body.
| |||||||||||
|
WebpushNotification(String title, String body, String icon)
Creates a new notification with the given title, body and icon.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static WebpushNotification.Builder |
builder()
Creates a new
WebpushNotification.Builder. | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a new notification with the given title and body. Overrides the options set via
Notification.
| title | Title of the notification. |
|---|---|
| body | Body of the notification. |
Creates a new notification with the given title, body and icon. Overrides the options set via
Notification.
| title | Title of the notification. |
|---|---|
| body | Body of the notification. |
| icon | URL to the notifications icon. |
Creates a new WebpushNotification.Builder.
WebpushNotification.Builder instance.