Style
abstract class Style
kotlin.Any | |
↳ | android.app.Notification.Style |
An object that can apply a rich notification style to a Notification.Builder
object.
Summary
Public constructors | |
---|---|
Style() |
Public methods | |
---|---|
open Notification! |
build() Calls |
open Unit |
setBuilder(builder: Notification.Builder!) |
Protected methods | |
---|---|
open Unit | |
open RemoteViews! |
getStandardView(layoutId: Int) |
open Unit |
internalSetBigContentTitle(title: CharSequence!) Overrides ContentTitle in the big form of the template. |
open Unit |
Set the first line of text after the detail section in the big form of the template. |
Properties | |
---|---|
Notification.Builder! |
Public constructors
Style
Style()
Deprecated: public access to the constructor of Style() is only useful for creating custom subclasses, but that has actually been impossible due to hidden abstract methods, so this constructor is now officially deprecated to clarify that this is intended to be disallowed.
Public methods
build
open fun build(): Notification!
Calls android.app.Notification.Builder#build()
on the Builder this Style is attached to.
Note: Calling build() multiple times returns the same Notification instance, so reusing a builder to create multiple Notifications is discouraged.
Return | |
---|---|
Notification! |
the fully constructed Notification. |
Protected methods
getStandardView
protected open fun getStandardView(layoutId: Int): RemoteViews!
internalSetBigContentTitle
protected open fun internalSetBigContentTitle(title: CharSequence!): Unit
Overrides ContentTitle in the big form of the template. This defaults to the value passed to setContentTitle().
internalSetSummaryText
protected open fun internalSetSummaryText(cs: CharSequence!): Unit
Set the first line of text after the detail section in the big form of the template.