Added in API level 16

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

Public methods
open Notification.BigTextStyle!

Provide the longer text to be displayed in the big form of the template in place of the content text.

open Notification.BigTextStyle!

Overrides ContentTitle in the big form of the template.

open Notification.BigTextStyle!

Set the first line of text after the detail section in the big form of the template.

Inherited functions
Inherited properties

Public constructors

BigTextStyle

Added in API level 16
BigTextStyle()

BigTextStyle

Added in API level 16
BigTextStyle(builder: Notification.Builder!)

Deprecated: use BigTextStyle().

Public methods

bigText

Added in API level 16
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

Added in API level 16
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

Added in API level 16
open fun setSummaryText(cs: CharSequence!): Notification.BigTextStyle!

Set the first line of text after the detail section in the big form of the template.