| java.lang.Object | |
| ↳ | com.google.firebase.messaging.ApsAlert.Builder |
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ApsAlert.Builder |
addAllLocalizationArgs(List<String> args)
Adds a list of resource keys that will be used in place of the format specifiers in
bodyLocKey. | ||||||||||
| ApsAlert.Builder |
addAllSubtitleLocArgs(List<String> args)
Adds a list of resource keys that will be used in place of the format specifiers in
subtitleLocKey. | ||||||||||
| ApsAlert.Builder |
addAllTitleLocArgs(List<String> args)
Adds a list of resource keys that will be used in place of the format specifiers in
titleLocKey. | ||||||||||
| ApsAlert.Builder |
addLocalizationArg(String arg)
Adds a resource key string that will be used in place of the format specifiers in
bodyLocKey. | ||||||||||
| ApsAlert.Builder |
addSubtitleLocalizationArg(String arg)
Adds a resource key string that will be used in place of the format specifiers in
subtitleLocKey. | ||||||||||
| ApsAlert.Builder |
addTitleLocalizationArg(String arg)
Adds a resource key string that will be used in place of the format specifiers in
titleLocKey. | ||||||||||
| ApsAlert |
build()
Creates a new
ApsAlert instance from the parameters set on this builder. | ||||||||||
| ApsAlert.Builder |
setActionLocalizationKey(String actionLocKey)
Sets the key of the text in the app's string resources to use to localize the action button
text.
| ||||||||||
| ApsAlert.Builder |
setBody(String body)
Sets the body of the alert.
| ||||||||||
| ApsAlert.Builder |
setLaunchImage(String launchImage)
Sets the launch image for the notification action.
| ||||||||||
| ApsAlert.Builder |
setLocalizationKey(String locKey)
Sets the key of the body string in the app's string resources to use to localize the body
text.
| ||||||||||
| ApsAlert.Builder |
setSubtitle(String subtitle)
Sets the subtitle of the alert.
| ||||||||||
| ApsAlert.Builder |
setSubtitleLocalizationKey(String subtitleLocKey)
Sets the key of the subtitle string in the app's string resources to use to localize
the subtitle text.
| ||||||||||
| ApsAlert.Builder |
setTitle(String title)
Sets the title of the alert.
| ||||||||||
| ApsAlert.Builder |
setTitleLocalizationKey(String titleLocKey)
Sets the key of the title string in the app's string resources to use to localize the title
text.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Adds a list of resource keys that will be used in place of the format specifiers in
bodyLocKey.
| args | List of resource key strings. |
|---|
Adds a list of resource keys that will be used in place of the format specifiers in
subtitleLocKey.
| args | List of resource key strings. |
|---|
Adds a list of resource keys that will be used in place of the format specifiers in
titleLocKey.
| args | List of resource key strings. |
|---|
Adds a resource key string that will be used in place of the format specifiers in
bodyLocKey.
| arg | Resource key string. |
|---|
Adds a resource key string that will be used in place of the format specifiers in
subtitleLocKey.
| arg | Resource key string. |
|---|
Adds a resource key string that will be used in place of the format specifiers in
titleLocKey.
| arg | Resource key string. |
|---|
Sets the key of the text in the app's string resources to use to localize the action button text.
| actionLocKey | Resource key string. |
|---|
Sets the body of the alert. When provided, overrides the body sent
via Notification.
| body | Body of the notification. |
|---|
Sets the launch image for the notification action.
| launchImage | An image file name. |
|---|
Sets the key of the body string in the app's string resources to use to localize the body text.
| locKey | Resource key string. |
|---|
Sets the subtitle of the alert.
| subtitle | Subtitle of the notification. |
|---|
Sets the key of the subtitle string in the app's string resources to use to localize the subtitle text.
| subtitleLocKey | Resource key string. |
|---|
Sets the title of the alert. When provided, overrides the title sent
via Notification.
| title | Title of the notification. |
|---|
Sets the key of the title string in the app's string resources to use to localize the title text.
| titleLocKey | Resource key string. |
|---|