public static class IOSDevicePayload.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
IOSDevicePayload.Builder |
addAllExtraEntries(java.util.Map<java.lang.String,java.lang.String> entries)
Add key value pairs to payload.
|
IOSDevicePayload.Builder |
addExtraEntry(java.lang.String key,
java.lang.String value)
Add an extra key value pair to the notification payload.
|
IOSDevicePayload |
build()
Build IOSDevicePayload
|
IOSDevicePayload.Builder |
setActions(Actions actions)
Set the Actions.
|
IOSDevicePayload.Builder |
setAlert(IOSAlertData alert)
Set the IOSAlertData object.
|
IOSDevicePayload.Builder |
setAlert(java.lang.String alert)
Create an IOSAlertData object with the given alert string.
|
IOSDevicePayload.Builder |
setBadge(IOSBadgeData badge)
Set the badge data.
|
IOSDevicePayload.Builder |
setCategory(java.lang.String value)
Set the category
|
IOSDevicePayload.Builder |
setCollapseId(java.lang.String value)
Set the collapse ID.
|
IOSDevicePayload.Builder |
setContentAvailable(boolean value)
Set the flag indicating content availability.
|
IOSDevicePayload.Builder |
setExpiry(PushExpiry value)
Set the expiry
|
IOSDevicePayload.Builder |
setInteractive(Interactive value)
Set the Interactive object
|
IOSDevicePayload.Builder |
setIosInterruptionLevel(IOSInterruptionLevel iosInterruptionLevel)
Set an interruption level.
|
IOSDevicePayload.Builder |
setIosLiveActivity(IOSLiveActivity iosLiveActivity)
Set Live Activity.
|
IOSDevicePayload.Builder |
setIosTemplate(IOSTemplate iosTemplate)
Set a template with iOS-specific message.
|
IOSDevicePayload.Builder |
setMediaAttachment(MediaAttachment value)
Set the media attachment.
|
IOSDevicePayload.Builder |
setMutableContent(java.lang.Boolean value)
Set the mutable content
|
IOSDevicePayload.Builder |
setPriority(int value)
Set the priority
|
IOSDevicePayload.Builder |
setRelevanceScore(java.lang.Double relevanceScore)
Set the relevance score.
|
IOSDevicePayload.Builder |
setSound(java.lang.String name)
Deprecated.
This can now be set using setSoundData as of 4.1.0.
Sets the name of the IOSSoundData object. This is a shortcut for when the only value pertaining to the 'sound' key is a sound file name.
|
IOSDevicePayload.Builder |
setSoundData(IOSSoundData value)
Set the IOSSoundData object.
|
IOSDevicePayload.Builder |
setSubtitle(java.lang.String value) |
IOSDevicePayload.Builder |
setTargetContentId(java.lang.String targetContentId)
Set the target content id.
|
IOSDevicePayload.Builder |
setThreadId(java.lang.String value)
Set the thread ID.
|
IOSDevicePayload.Builder |
setTitle(java.lang.String value)
Set the title
|
public IOSDevicePayload.Builder setAlert(java.lang.String alert)
alert
- String alertpublic IOSDevicePayload.Builder setAlert(IOSAlertData alert)
alert
- IOSAlertDatapublic IOSDevicePayload.Builder setBadge(IOSBadgeData badge)
badge
- IOSBadgeDatapublic IOSDevicePayload.Builder setContentAvailable(boolean value)
value
- Boolean for content availability.public IOSDevicePayload.Builder setExpiry(PushExpiry value)
value
- Integerpublic IOSDevicePayload.Builder setPriority(int value)
value
- Integerpublic IOSDevicePayload.Builder addExtraEntry(java.lang.String key, java.lang.String value)
key
- String keyvalue
- String valuepublic IOSDevicePayload.Builder addAllExtraEntries(java.util.Map<java.lang.String,java.lang.String> entries)
entries
- Map of key value pairspublic IOSDevicePayload.Builder setCategory(java.lang.String value)
value
- Stringpublic IOSDevicePayload.Builder setInteractive(Interactive value)
value
- Interactivepublic IOSDevicePayload.Builder setTitle(java.lang.String value)
value
- Stringpublic IOSDevicePayload.Builder setSubtitle(java.lang.String value)
public IOSDevicePayload.Builder setMediaAttachment(MediaAttachment value)
value
- MediaAttachmentpublic IOSDevicePayload.Builder setSoundData(IOSSoundData value)
value
- IOSSoundData@Deprecated public IOSDevicePayload.Builder setSound(java.lang.String name)
name
- Stringpublic IOSDevicePayload.Builder setMutableContent(java.lang.Boolean value)
value
- Booleanpublic IOSDevicePayload.Builder setCollapseId(java.lang.String value)
value
- Stringpublic IOSDevicePayload.Builder setThreadId(java.lang.String value)
value
- Stringpublic IOSDevicePayload.Builder setActions(Actions actions)
actions
- Actionspublic IOSDevicePayload.Builder setTargetContentId(java.lang.String targetContentId)
targetContentId
- Stringpublic IOSDevicePayload.Builder setIosTemplate(IOSTemplate iosTemplate)
iosTemplate
- IOSTemplatepublic IOSDevicePayload.Builder setIosInterruptionLevel(IOSInterruptionLevel iosInterruptionLevel)
iosInterruptionLevel
- IOSInterruptionLevelpublic IOSDevicePayload.Builder setRelevanceScore(java.lang.Double relevanceScore)
relevanceScore
- Doublepublic IOSDevicePayload.Builder setIosLiveActivity(IOSLiveActivity iosLiveActivity)
iosLiveActivity
- IOSLiveActivitypublic IOSDevicePayload build()