BigTextStyle
open class BigTextStyle : Notification.Style
kotlin.Any | ||
↳ | android.app.Notification.Style | |
↳ | android.app.Notification.BigTextStyle |
Helper class for generating large-format notifications that include a lot of text. Here's how you'd set the BigTextStyle
on a notification:
Notification notif = new Notification.Builder(mContext) .setContentTitle("New mail from " + sender.toString()) .setContentText(subject) .setSmallIcon(R.drawable.new_mail) .setLargeIcon(aBitmap) .setStyle(new Notification.BigTextStyle() .bigText(aVeryLongString)) .build();
Summary
Public constructors | |
---|---|
BigTextStyle(builder: Notification.Builder!) |
Public methods | |
---|---|
open Notification.BigTextStyle! |
bigText(cs: CharSequence!) Provide the longer text to be displayed in the big form of the template in place of the content text. |
open Notification.BigTextStyle! |
setBigContentTitle(title: CharSequence!) Overrides ContentTitle in the big form of the template. |
open Notification.BigTextStyle! |
setSummaryText(cs: CharSequence!) Set the first line of text after the detail section in the big form of the template. |
Inherited functions | |
---|---|
Inherited properties | |
---|---|
Public constructors
BigTextStyle
BigTextStyle(builder: Notification.Builder!)
Deprecated: use BigTextStyle()
.
Public methods
bigText
open fun bigText(cs: CharSequence!): Notification.BigTextStyle!
Provide the longer text to be displayed in the big form of the template in place of the content text.
setBigContentTitle
open fun setBigContentTitle(title: CharSequence!): Notification.BigTextStyle!
Overrides ContentTitle in the big form of the template. This defaults to the value passed to setContentTitle().
setSummaryText
open fun setSummaryText(cs: CharSequence!): Notification.BigTextStyle!
Set the first line of text after the detail section in the big form of the template.