public static class Notification.Builder
extends java.lang.Object
Example:
Notification notification = new Notification.Builder()
.setTitle("Here's an important notification!")
.setText(subject)
.build();
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Notification |
build()
Combine all of the options that have been set and return a new Notification object.
|
Notification.Builder |
text(java.lang.CharSequence text)
Set the second line of text (the content of the notification) in the platform notification
template.
|
Notification.Builder |
title(java.lang.CharSequence title)
Set the first line of text (usually properly emphasized as a title) in the platform
notification template.
|
public Notification build()
public Notification.Builder title(java.lang.CharSequence title)
title - public Notification.Builder text(java.lang.CharSequence text)
text -