| java.lang.Object | |
| ↳ | com.google.firebase.messaging.WebpushConfig.Builder |
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| WebpushConfig |
build()
Creates a new
WebpushConfig instance from the parameters set on this builder. | ||||||||||
| WebpushConfig.Builder |
putAllData(Map<String, String> map)
Adds all the key-value pairs in the given map as Webpush data fields.
| ||||||||||
| WebpushConfig.Builder |
putAllHeaders(Map<String, String> map)
Adds all the key-value pairs in the given map as Webpush headers.
| ||||||||||
| WebpushConfig.Builder |
putData(String key, String value)
Sets the given key-value pair as a Webpush data field.
| ||||||||||
| WebpushConfig.Builder |
putHeader(String key, String value)
Adds the given key-value pair as a Webpush HTTP header.
| ||||||||||
| WebpushConfig.Builder |
setFcmOptions(WebpushFcmOptions fcmOptions)
Sets the Webpush FCM options to be included in the Webpush config.
| ||||||||||
| WebpushConfig.Builder |
setNotification(WebpushNotification notification)
Sets the Webpush notification to be included in the message.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a new WebpushConfig instance from the parameters set on this builder.
WebpushConfig instance.| IllegalArgumentException | If any of the parameters set on the builder are invalid. |
|---|
Adds all the key-value pairs in the given map as Webpush data fields. When set, overrides any
data fields set using the methods putData(String, String) and
putAllData(Map).
| map | A non-null map of data values. Map must not contain null keys or values. |
|---|
Adds all the key-value pairs in the given map as Webpush headers. Refer to Webpush specification for supported headers.
| map | A non-null map of header values. Map must not contain null keys or values. |
|---|
Sets the given key-value pair as a Webpush data field. When set, overrides any data fields
set using the methods putData(String, String) and
putAllData(Map).
| key | Name of the data field. Must not be null. |
|---|---|
| value | Value of the data field. Must not be null. |
Adds the given key-value pair as a Webpush HTTP header. Refer to Webpush specification for supported headers.
| key | Name of the header. Must not be null. |
|---|---|
| value | Value of the header. Must not be null. |
Sets the Webpush FCM options to be included in the Webpush config.
| fcmOptions | A WebpushFcmOptions instance. |
|---|
Sets the Webpush notification to be included in the message.
| notification | A WebpushNotification instance. |
|---|