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 | |
---|---|
<init>() An object that can apply a rich notification style to a |
Public methods | |
---|---|
open Notification? |
build() If this Style object has been set on a notification builder, this method will build that notification and return it. |
open Unit |
setBuilder(@Nullable builder: NotificationCompat.Builder?) 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.