| java.lang.Object | |
| ↳ | com.google.firebase.messaging.MulticastMessage.Builder |
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| MulticastMessage.Builder |
addAllTokens(Collection<String> tokens)
Adds a collection of tokens to which the message should be sent.
| ||||||||||
| MulticastMessage.Builder |
addToken(String token)
Adds a token to which the message should be sent.
| ||||||||||
| MulticastMessage |
build()
Creates a new
MulticastMessage instance from the parameters set on this builder. | ||||||||||
| MulticastMessage.Builder |
putAllData(Map<String, String> map)
Adds all the key-value pairs in the given map to the message as data fields.
| ||||||||||
| MulticastMessage.Builder |
putData(String key, String value)
Adds the given key-value pair to the message as a data field.
| ||||||||||
| MulticastMessage.Builder |
setAndroidConfig(AndroidConfig androidConfig)
Sets the Android-specific information to be included in the message.
| ||||||||||
| MulticastMessage.Builder |
setApnsConfig(ApnsConfig apnsConfig)
Sets the information specific to APNS (Apple Push Notification Service).
| ||||||||||
| MulticastMessage.Builder |
setFcmOptions(FcmOptions fcmOptions)
Sets the
FcmOptions, which can be overridden by the platform-specific fcm_options fields. | ||||||||||
| MulticastMessage.Builder |
setNotification(Notification notification)
Sets the notification information to be included in the message.
| ||||||||||
| MulticastMessage.Builder |
setWebpushConfig(WebpushConfig webpushConfig)
Sets the Webpush-specific information to be included in the message.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Adds a collection of tokens to which the message should be sent. Up to 500 tokens can be
specified on a single instance of MulticastMessage.
| tokens | Collection of Firebase device registration tokens. |
|---|
Adds a token to which the message should be sent. Up to 500 tokens can be specified on
a single instance of MulticastMessage.
| token | A non-null, non-empty Firebase device registration token. |
|---|
Creates a new MulticastMessage instance from the parameters set on this builder.
MulticastMessage instance.| IllegalArgumentException | If any of the parameters set on the builder are invalid. |
|---|
Adds all the key-value pairs in the given map to the message as data fields. None of the keys or values may be null.
| map | A non-null map of data fields. Map must not contain null keys or values. |
|---|
Adds the given key-value pair to the message as a data field. Key or the value may not be null.
| key | Name of the data field. Must not be null. |
|---|---|
| value | Value of the data field. Must not be null. |
Sets the Android-specific information to be included in the message.
| androidConfig | An AndroidConfig instance. |
|---|
Sets the information specific to APNS (Apple Push Notification Service).
| apnsConfig | An ApnsConfig instance. |
|---|
Sets the FcmOptions, which can be overridden by the platform-specific fcm_options fields.
Sets the notification information to be included in the message.
| notification | A Notification instance. |
|---|
Sets the Webpush-specific information to be included in the message.
| webpushConfig | A WebpushConfig instance. |
|---|