Ir para o console

AndroidNotification.Builder

public static class AndroidNotification.Builder extends Object

Public Method Summary

AndroidNotification.Builder
addAllBodyLocalizationArgs(List<String> args)
Adds a list of resource keys that will be used in place of the format specifiers in bodyLocKey.
AndroidNotification.Builder
addAllTitleLocalizationArgs(List<String> args)
Adds a list of resource keys that will be used in place of the format specifiers in titleLocKey.
AndroidNotification.Builder
addBodyLocalizationArg(String arg)
Adds a resource key string that will be used in place of the format specifiers in bodyLocKey.
AndroidNotification.Builder
addTitleLocalizationArg(String arg)
Adds a resource key string that will be used in place of the format specifiers in titleLocKey.
AndroidNotification
build()
Creates a new AndroidNotification instance from the parameters set on this builder.
AndroidNotification.Builder
setBody(String body)
Sets the body of the Android notification.
AndroidNotification.Builder
setBodyLocalizationKey(String bodyLocKey)
Sets the key of the body string in the app's string resources to use to localize the body text.
AndroidNotification.Builder
setChannelId(String channelId)
Sets the Android notification channel ID (new in Android O).
AndroidNotification.Builder
setClickAction(String clickAction)
Sets the action associated with a user click on the notification.
AndroidNotification.Builder
setColor(String color)
Sets the notification icon color.
AndroidNotification.Builder
setDefaultLightSettings(boolean defaultLightSettings)
Sets the whether to use the default light settings.
AndroidNotification.Builder
setDefaultSound(boolean defaultSound)
Sets the whether to use the default sound.
AndroidNotification.Builder
setDefaultVibrateTimings(boolean defaultVibrateTimings)
Sets the whether to use the default vibration timings.
AndroidNotification.Builder
setEventTimeInMillis(long eventTimeInMillis)
For notifications that inform users about events with an absolute time reference, sets the time that the event in the notification occurred in milliseconds.
AndroidNotification.Builder
setIcon(String icon)
Sets the icon of the Android notification.
AndroidNotification.Builder
setImage(String imageUrl)
Sets the URL of the image that is going to be displayed in the notification.
AndroidNotification.Builder
setLightSettings(LightSettings lightSettings)
Sets the settings to control the notification's LED blinking rate and color if LED is available on the device.
AndroidNotification.Builder
setLocalOnly(boolean localOnly)
Sets whether or not this notification is relevant only to the current device.
AndroidNotification.Builder
setNotificationCount(int notificationCount)
Sets the number of items this notification represents.
AndroidNotification.Builder
setPriority(AndroidNotification.Priority priority)
Sets the relative priority for this notification.
AndroidNotification.Builder
setSound(String sound)
Sets the sound to be played when the device receives the notification.
AndroidNotification.Builder
setSticky(boolean sticky)
Sets the sticky flag.
AndroidNotification.Builder
setTag(String tag)
Sets the notification tag.
AndroidNotification.Builder
setTicker(String ticker)
Sets the "ticker" text, which is sent to accessibility services.