public static class UnifiedMessage.MessageBuilder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
UnifiedMessage.MessageBuilder.ApnsBuilder |
static class |
UnifiedMessage.MessageBuilder.WindowsBuilder |
Constructor and Description |
---|
MessageBuilder(UnifiedMessage.Builder builder) |
Modifier and Type | Method and Description |
---|---|
UnifiedMessage.MessageBuilder |
alert(String message)
Triggers a dialog, displaying the value.
|
UnifiedMessage.MessageBuilder.ApnsBuilder |
apns()
Apns specific push notification settings like "title", "actionCategory" ...
|
UnifiedMessage.MessageBuilder |
badge(String badge)
Sets the value of the badge icon - no iOS API needs to be invoked by the app developer.
|
UnifiedMessage |
build() |
UnifiedMessage.ConfigBuilder |
config() |
UnifiedMessage.CriteriaBuilder |
criteria() |
protected org.jboss.aerogear.unifiedpush.message.Message |
getObject() |
UnifiedMessage.MessageBuilder |
simplePush(String version)
Needed when sending a message to a SimplePush Network
|
UnifiedMessage.MessageBuilder |
sound(String sound)
Plays a given sound - On iOS no API needs to be invoked to play the sound file.
|
UnifiedMessage.MessageBuilder |
userData(Map<String,Object> userDataMap)
Adds a map containing custom key/value entries.
|
UnifiedMessage.MessageBuilder |
userData(String key,
String value)
Adds an custom value for the given key.
|
UnifiedMessage.MessageBuilder.WindowsBuilder |
windows()
Windows specific push notification settings support for Tile, Raw, Badge and Toast messages
For all the templates as much as possible the main parts of the message are re-used.
|
public MessageBuilder(UnifiedMessage.Builder builder)
public UnifiedMessage.MessageBuilder alert(String message)
message
- that will be displayed on the alert UI elementUnifiedMessage.MessageBuilder
instancepublic UnifiedMessage.MessageBuilder sound(String sound)
sound
- i.e name of the sound fileUnifiedMessage.MessageBuilder
instancepublic UnifiedMessage.MessageBuilder badge(String badge)
badge
- i.e file name of the iconUnifiedMessage.MessageBuilder
instancepublic UnifiedMessage.MessageBuilder simplePush(String version)
version
- to pass to the broadcast channel, i.e "version=5"UnifiedMessage.MessageBuilder
instancepublic UnifiedMessage.MessageBuilder userData(String key, String value)
key
- of an user data entryvalue
- of an user data entryUnifiedMessage.MessageBuilder
instancepublic UnifiedMessage.MessageBuilder userData(Map<String,Object> userDataMap)
userDataMap
- containing custom key/value entriesUnifiedMessage.MessageBuilder
instancepublic UnifiedMessage.CriteriaBuilder criteria()
public UnifiedMessage.ConfigBuilder config()
public UnifiedMessage.MessageBuilder.WindowsBuilder windows()
UnifiedMessage.MessageBuilder.WindowsBuilder
instancepublic UnifiedMessage.MessageBuilder.ApnsBuilder apns()
UnifiedMessage.MessageBuilder.ApnsBuilder
instancepublic UnifiedMessage build()
protected org.jboss.aerogear.unifiedpush.message.Message getObject()
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.