public static class FirefoxWeb.Builder extends Object
FirefoxWeb.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
FirefoxWeb |
build() |
FirefoxWeb.Builder |
iconUrl(String iconUrl) |
FirefoxWeb.Builder |
payload(org.json.JSONObject payload) |
FirefoxWeb.Builder |
timeToLive(Integer timeToLive) |
FirefoxWeb.Builder |
title(String title) |
public final FirefoxWeb.Builder title(String title)
title - Specifies the title to be set for the WebPush
Notification.public final FirefoxWeb.Builder iconUrl(String iconUrl)
iconUrl - The URL of the icon to be set for the WebPush
Notification.public final FirefoxWeb.Builder timeToLive(Integer timeToLive)
timeToLive - This parameter specifies the duration (in seconds) for
which the message should be kept in FCM, if the device is
offline.public final FirefoxWeb.Builder payload(org.json.JSONObject payload)
payload - Custom JSON payload that will be sent as part of the
notification message.public FirefoxWeb build()
FirefoxWeb object.Copyright © 2018. All rights reserved.