Style

abstract class Style
kotlin.Any
   ↳ androidx.core.app.NotificationCompat.Style

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

An object that can apply a rich notification style to a Notification.Builder object.

Public methods
open Notification?

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

open Unit

Link this rich notification style with a notification builder.

Public constructors

<init>

Style()

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.

Public methods

build

@Nullable open 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

open fun setBuilder(@Nullable builder: NotificationCompat.Builder?): Unit

Link this rich notification style with a notification builder.