NotificationCompat.Style
public abstract class NotificationCompat.Style
MediaStyleNotificationHelper.MediaStyle |
Notification style for media playback notifications. |
NotificationCompat.BigPictureStyle |
Helper class for generating large-format notifications that include a large image attachment. |
NotificationCompat.BigTextStyle |
Helper class for generating large-format notifications that include a lot of text. |
NotificationCompat.CallStyle |
Helper class for generating large-format notifications that include a caller and required actions, and indicate an incoming call. |
NotificationCompat.DecoratedCustomViewStyle |
Notification style for custom views that are decorated by the system. |
NotificationCompat.InboxStyle |
Helper class for generating large-format notifications that include a list of (up to 5) strings. |
NotificationCompat.MediaStyle |
Notification style for media playback notifications. |
NotificationCompat.MessagingStyle |
Helper class for generating large-format notifications that include multiple back-and-forth messages of varying types between any number of people. |
NotificationCompat.ProgressStyle |
Helper class for generating large-format notifications that display progress to the user with a highly customizable progress bar with segments, points, a custom tracker icon, and custom icons at the start and end of the progress bar. |
MediaStyleNotificationHelper.DecoratedMediaCustomViewStyle |
Notification style for media custom views that are decorated by the system. |
NotificationCompat.DecoratedMediaCustomViewStyle |
Notification style for media custom views that are decorated by the system. |
An object that can apply a rich notification style to a Notification.Builder object. If the platform does not provide rich notification styles, methods in this class have no effect.
Summary
Public constructors |
|---|
Style() |
Public methods |
|
|---|---|
@Nullable Notification |
build()If this Style object has been set on a notification builder, this method will build that notification and return it. |
void |
setBuilder(@Nullable NotificationCompat.Builder builder)Link this rich notification style with a notification builder. |
Public constructors
Public methods
build
public @Nullable Notification build()
If this Style object has been set on a notification builder, this method will build that notification and return it. Otherwise, it will return null.
setBuilder
public void setBuilder(@Nullable NotificationCompat.Builder builder)
Link this rich notification style with a notification builder.