WebpushNotification

public class WebpushNotification extends Object

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 Class Summary

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 Constructor Summary

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 Method Summary

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 Constructors

public WebpushNotification (String title, String body)

Creates a new notification with the given title and body. Overrides the options set via Notification.

Parameters
title Title of the notification.
body Body of the notification.

public WebpushNotification (String title, String body, String icon)

Creates a new notification with the given title, body and icon. Overrides the options set via Notification.

Parameters
title Title of the notification.
body Body of the notification.
icon URL to the notifications icon.

Public Methods

public static WebpushNotification.Builder builder ()

Returns