public class
Notification
extends Object
Represents the notification parameters that can be included in a Message
. Instances
of this class are thread-safe and immutable.
Nested Class Summary
class | Notification.Builder |
Public Constructor Summary
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 Method Summary
static Notification.Builder |
builder()
Creates a new
Notification.Builder . |
Inherited Method Summary
Public Constructors
public Notification (String title, String body)
This constructor is deprecated.
Use #Notification(Builder) instead.
Creates a new Notification
using the given title and body.
Parameters
title | Title of the notification. |
---|---|
body | Body of the notification. |
public Notification (String title, String body, String imageUrl)
This constructor is deprecated.
Use #Notification(Builder) instead.
Creates a new Notification
using the given title, body, and image.
Parameters
title | Title of the notification. |
---|---|
body | Body of the notification. |
imageUrl | URL of the image that is going to be displayed in the notification. |
Public Methods
public static Notification.Builder builder ()
Creates a new Notification.Builder
.
Returns
- A
Notification.Builder
instance.