NotificationCompat.Style

public abstract class NotificationCompat.Style

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

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

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

public final Style()

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.