Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# BigTextStyle

*** ** * ** ***

```
open class BigTextStyle : Notification.Style
```

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [android.app.Notification.Style](https://developer.android.com/reference/kotlin/android/app/Notification.Style) ||
|   | ↳ | [android.app.Notification.BigTextStyle](https://developer.android.com/reference/kotlin/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:

```kotlin
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 ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/Notification.BigTextStyle#BigTextStyle()()` <br /> |
| `https://developer.android.com/reference/kotlin/android/app/Notification.BigTextStyle#BigTextStyle(android.app.Notification.Builder)(builder: https://developer.android.com/reference/kotlin/android/app/Notification.Builder!)` <br /> |

| Public methods ||
|---|---|
| open [Notification.BigTextStyle](https://developer.android.com/reference/kotlin/android/app/Notification.BigTextStyle#)! | `https://developer.android.com/reference/kotlin/android/app/Notification.BigTextStyle#bigText(kotlin.CharSequence)(cs: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!)` Provide the longer text to be displayed in the expanded form of the template in place of the content text. |
| open [Notification.BigTextStyle](https://developer.android.com/reference/kotlin/android/app/Notification.BigTextStyle#)! | `https://developer.android.com/reference/kotlin/android/app/Notification.BigTextStyle#setBigContentTitle(kotlin.CharSequence)(title: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!)` Overrides ContentTitle in the expanded form of the template. |
| open [Notification.BigTextStyle](https://developer.android.com/reference/kotlin/android/app/Notification.BigTextStyle#)! | `https://developer.android.com/reference/kotlin/android/app/Notification.BigTextStyle#setSummaryText(kotlin.CharSequence)(cs: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!)` Set the first line of text after the detail section in the expanded form of the template. |

| Inherited functions ||
|---|---|
| From class `https://developer.android.com/reference/kotlin/android/app/Notification.Style` |---|---| | `https://developer.android.com/reference/kotlin/android/app/Notification!` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#build()()` Calls `https://developer.android.com/reference/kotlin/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. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#checkBuilder()()` <br /> | | `https://developer.android.com/reference/kotlin/android/widget/RemoteViews.html#!` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#getStandardView(kotlin.Int)(layoutId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#internalSetBigContentTitle(kotlin.CharSequence)(title: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!)` Overrides ContentTitle in the expanded form of the template. This defaults to the value passed to setContentTitle(). <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#internalSetSummaryText(kotlin.CharSequence)(cs: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!)` Set the first line of text after the detail section in the expanded form of the template. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#setBuilder(android.app.Notification.Builder)(builder: https://developer.android.com/reference/kotlin/android/app/Notification.Builder!)` <br /> | ||

| Inherited properties ||
|---|---|
| From class `https://developer.android.com/reference/kotlin/android/app/Notification.Style` |---|---| | `https://developer.android.com/reference/kotlin/android/app/Notification.Builder!` | `https://developer.android.com/reference/kotlin/android/app/Notification.Style#mBuilder:android.app.Notification.Builder` <br /> | ||

## Public constructors

### BigTextStyle

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
BigTextStyle()
```

### BigTextStyle

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
BigTextStyle(builder: Notification.Builder!)
```

**Deprecated:** *use `BigTextStyle()`.*

## Public methods

### bigText

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun bigText(cs: CharSequence!): Notification.BigTextStyle!
```

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

### setBigContentTitle

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setBigContentTitle(title: CharSequence!): Notification.BigTextStyle!
```

Overrides ContentTitle in the expanded form of the template. This defaults to the value passed to setContentTitle().

### setSummaryText

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setSummaryText(cs: CharSequence!): Notification.BigTextStyle!
```

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