NotificationCompat.Style

Added in 1.1.0

public abstract class NotificationCompat.Style

Known direct subclasses
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

This class is deprecated.

androidx.media is deprecated.

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.MetricStyle

A notification style which shows up to 3 metrics when expanded.

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.

Known indirect subclasses
MediaStyleNotificationHelper.DecoratedMediaCustomViewStyle

Notification style for media custom views that are decorated by the system.

NotificationCompat.DecoratedMediaCustomViewStyle

This class is deprecated.

androidx.media is deprecated.


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

Public methods

@Nullable Notification

If this Style object has been set on a notification builder, this method will build that notification and return it.

void

Link this rich notification style with a notification builder.

Public constructors

Style

Added in 1.1.0
public Style()

Public methods

build

Added in 1.1.0
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

Added in 1.1.0
public void setBuilder(@Nullable NotificationCompat.Builder builder)

Link this rich notification style with a notification builder.