| java.lang.Object | |
| ↳ | com.google.firebase.messaging.ApnsConfig.Builder |
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ApnsConfig |
build()
Creates a new
ApnsConfig instance from the parameters set on this builder. | ||||||||||
| ApnsConfig.Builder |
putAllCustomData(Map<String, Object> map)
Adds all the key-value pairs in the given map as APNS custom data fields.
| ||||||||||
| ApnsConfig.Builder |
putAllHeaders(Map<String, String> map)
Adds all the key-value pairs in the given map as APNS headers.
| ||||||||||
| ApnsConfig.Builder |
putCustomData(String key, Object value)
Adds the given key-value pair as an APNS custom data field.
| ||||||||||
| ApnsConfig.Builder |
putHeader(String key, String value)
Adds the given key-value pair as an APNS header.
| ||||||||||
| ApnsConfig.Builder |
setAps(Aps aps)
Sets the aps dictionary of the APNS message.
| ||||||||||
| ApnsConfig.Builder |
setFcmOptions(ApnsFcmOptions apnsFcmOptions)
Sets the
ApnsFcmOptions, which will override values set in the FcmOptions for
APNS messages. | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a new ApnsConfig instance from the parameters set on this builder.
ApnsConfig instance.| IllegalArgumentException | If any of the parameters set on the builder are invalid. |
|---|
Adds all the key-value pairs in the given map as APNS custom data fields.
| map | A non-null map. Map must not contain null keys or values. |
|---|
Adds all the key-value pairs in the given map as APNS headers.
| map | A non-null map of headers. Map must not contain null keys or values. |
|---|
Adds the given key-value pair as an APNS custom data field.
| 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 an APNS header.
| key | Name of the header field. Must not be null. |
|---|---|
| value | Value of the header field. Must not be null. |
Sets the aps dictionary of the APNS message.
| aps | A non-null instance of Aps. |
|---|
Sets the ApnsFcmOptions, which will override values set in the FcmOptions for
APNS messages.