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.

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.

Inherited Method Summary

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.

Send feedback about...

Need help? Visit our support page.