Modifier and Type | Class and Description |
---|---|
static class |
APNs.Builder.APNSNotificationType
The available notification types of the APNs notification message.
|
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
APNs.Builder |
apnsCollapseId(String apnsCollapseId) |
APNs.Builder |
attachmentUrl(String attachmentUrl) |
APNs.Builder |
badge(Integer badge) |
APNs |
build() |
APNs.Builder |
interactiveCategory(String interactiveCategory) |
APNs.Builder |
iosActionKey(String iosActionKey) |
APNs.Builder |
launchImage(String launchImage) |
APNs.Builder |
locArgs(String[] locArgs) |
APNs.Builder |
locKey(String locKey) |
APNs.Builder |
payload(org.json.JSONObject payload) |
APNs.Builder |
sound(String sound) |
APNs.Builder |
subtitle(String subtitle) |
APNs.Builder |
title(String title) |
APNs.Builder |
titleLocArgs(String[] titleLocArgs) |
APNs.Builder |
titleLocKey(String titleLocKey) |
APNs.Builder |
type(APNs.Builder.APNSNotificationType type) |
public final APNs.Builder badge(Integer badge)
badge
- The number to display as the badge of the application
icon.public final APNs.Builder sound(String sound)
sound
- The name of the sound file in the application bundle. The
sound of this file is played as an alert.public final APNs.Builder iosActionKey(String iosActionKey)
iosActionKey
- The title for the Action key.public final APNs.Builder payload(org.json.JSONObject payload)
payload
- Custom JSON payload that will be sent as part of the
notification message.public final APNs.Builder interactiveCategory(String interactiveCategory)
interactiveCategory
- The category identifier to be used for the interactive
push notifications.public final APNs.Builder type(APNs.Builder.APNSNotificationType type)
type
- {'DEFAULT', 'MIXED', 'SILENT'}public final APNs.Builder titleLocKey(String titleLocKey)
titleLocKey
- The key to a title string in the Localizable.strings file
for the current localization. The key string can be
formatted with %@ and %n$@ specifiers to take the
variables specified in the titleLocArgs array.public final APNs.Builder locKey(String locKey)
locKey
- A key to an alert-message string in a Localizable.strings
file for the current localization (which is set by the
user�s language preference). The key string can be
formatted with %@ and %n$@ specifiers to take the
variables specified in the locArgs array.public final APNs.Builder launchImage(String launchImage)
launchImage
- The filename of an image file in the app bundle, with or
without the filename extension. The image is used as the
launch image when users tap the action button or move the
action slider.public final APNs.Builder titleLocArgs(String[] titleLocArgs)
titleLocArgs
- Variable string values to appear in place of the format
specifiers in title-loc-key.public final APNs.Builder locArgs(String[] locArgs)
locArgs
- Variable string values to appear in place of the format
specifiers in locKey.public final APNs.Builder subtitle(String subtitle)
subtitle
- The subtitle of the Rich Notifications. (Supported on iOS
10 or later).public final APNs.Builder title(String title)
title
- title - The title of Rich Push notifications (Supported on
iOS 10 or later).public final APNs.Builder attachmentUrl(String attachmentUrl)
attachmentUrl
- The link to the iOS notifications media (video, audio,
GIF, images - Supported only on iOS 10 and above).public final APNs.Builder apnsCollapseId(String apnsCollapseId)
apnsCollapseId
- Multiple notifications with the same collapse identifier are displayed to the user as a single notificationCopyright © 2019. All rights reserved.