NotificationCompat.Style

Added in 1.1.0

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

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

Public functions

Notification?

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

Unit

Link this rich notification style with a notification builder.

Public constructors

Style

Added in 1.1.0
Style()

Public functions

build

Added in 1.1.0
fun build(): Notification?

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
fun setBuilder(builder: NotificationCompat.Builder?): Unit

Link this rich notification style with a notification builder.