public static class
Notification.Builder
extends Object
Public Method Summary
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.
|
Inherited Method Summary
Object |
clone()
|
boolean |
equals(Object arg0)
|
void |
finalize()
|
final Class<?> |
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String |
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Public Methods
public Notification build ()
Creates a new Notification
instance from the parameters set on this builder.
Returns
- A new
Notification
instance.
Throws
IllegalArgumentException | If any of the parameters set on the builder are invalid. |
---|
public Notification.Builder setBody (String body)
Sets the body of the notification.
Parameters
body | Body of the notification. |
---|
Returns
- This builder.
public Notification.Builder setImage (String imageUrl)
Sets the URL of the image that is going to be displayed in the notification.
Parameters
imageUrl | URL of the image that is going to be displayed in the notification. |
---|
Returns
- This builder.
public Notification.Builder setTitle (String title)
Sets the title of the notification.
Parameters
title | Title of the notification. |
---|
Returns
- This builder.