public static class ChromeAppExt.Builder extends Object
ChromeAppExt.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ChromeAppExt |
build() |
ChromeAppExt.Builder |
collapseKey(String collapseKey) |
ChromeAppExt.Builder |
delayWhileIdle(Boolean delayWhileIdle) |
ChromeAppExt.Builder |
iconUrl(String iconUrl) |
ChromeAppExt.Builder |
payload(org.json.JSONObject payload) |
ChromeAppExt.Builder |
timeToLive(Integer timeToLive) |
ChromeAppExt.Builder |
title(String title) |
public final ChromeAppExt.Builder collapseKey(String collapseKey)
collapseKey - This parameter identifies a group of messages.public final ChromeAppExt.Builder delayWhileIdle(Boolean delayWhileIdle)
delayWhileIdle - When this parameter is set to true, it indicates that the
message should not be sent until the device becomes
active.public final ChromeAppExt.Builder title(String title)
title - Specifies the title to be set for the WebPush
Notification.public final ChromeAppExt.Builder iconUrl(String iconUrl)
iconUrl - The URL of the icon to be set for the WebPush
Notification.public final ChromeAppExt.Builder timeToLive(Integer timeToLive)
timeToLive - This parameter specifies the duration (in seconds) for
which the message should be held in FCM, if the device is
offline.public final ChromeAppExt.Builder payload(org.json.JSONObject payload)
payload - Custom JSON payload that will be sent as part of the
notification message.public ChromeAppExt build()
ChromeAppExt object.Copyright © 2017. All rights reserved.