Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Inherited Fields](https://developer.android.com/reference/android/app/Notification.BigTextStyle#inhfields) \| [Ctors](https://developer.android.com/reference/android/app/Notification.BigTextStyle#pubctors) \| [Methods](https://developer.android.com/reference/android/app/Notification.BigTextStyle#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/app/Notification.BigTextStyle#inhmethods)

# Notification.BigTextStyle

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/app/Notification.BigTextStyle "View this page in Kotlin") \|Java


`
public
static


class
Notification.BigTextStyle
`


`


`

`

extends https://developer.android.com/reference/android/app/Notification.Style


`

`


`

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [android.app.Notification.Style](https://developer.android.com/reference/android/app/Notification.Style) ||
|   | ↳ | android.app.Notification.BigTextStyle |

<br />

*** ** * ** ***

Helper class for generating large-format notifications that include a lot of text.

Here's how you'd set the `BigTextStyle` on a notification:

```scdoc
 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();
 
```

<br />

**See also:**

- `https://developer.android.com/reference/android/app/Notification#bigContentView`

## Summary

| ### Inherited fields |
|---|
| From class `https://developer.android.com/reference/android/app/Notification.Style` |---|---| | ` protected https://developer.android.com/reference/android/app/Notification.Builder` | `https://developer.android.com/reference/android/app/Notification.Style#mBuilder` | |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/app/Notification.BigTextStyle#BigTextStyle()() ` |
| ` https://developer.android.com/reference/android/app/Notification.BigTextStyle#BigTextStyle(android.app.Notification.Builder)(https://developer.android.com/reference/android/app/Notification.Builder builder) ` *This constructor is deprecated. use `BigTextStyle()`.* |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/app/Notification.BigTextStyle` | ` https://developer.android.com/reference/android/app/Notification.BigTextStyle#bigText(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence cs) ` Provide the longer text to be displayed in the expanded form of the template in place of the content text. |
| ` https://developer.android.com/reference/android/app/Notification.BigTextStyle` | ` https://developer.android.com/reference/android/app/Notification.BigTextStyle#setBigContentTitle(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence title) ` Overrides ContentTitle in the expanded form of the template. |
| ` https://developer.android.com/reference/android/app/Notification.BigTextStyle` | ` https://developer.android.com/reference/android/app/Notification.BigTextStyle#setSummaryText(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence cs) ` Set the first line of text after the detail section in the expanded form of the template. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/android/app/Notification.Style ` |---|---| | ` https://developer.android.com/reference/android/app/Notification` | ` https://developer.android.com/reference/android/app/Notification.Style#build()() ` Calls `https://developer.android.com/reference/android/app/Notification.Builder#build()` on the Builder this Style is attached to. | | ` void` | ` https://developer.android.com/reference/android/app/Notification.Style#checkBuilder()() ` | | ` https://developer.android.com/reference/android/widget/RemoteViews` | ` https://developer.android.com/reference/android/app/Notification.Style#getStandardView(int)(int layoutId) ` | | ` void` | ` https://developer.android.com/reference/android/app/Notification.Style#internalSetBigContentTitle(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence title) ` Overrides ContentTitle in the expanded form of the template. | | ` void` | ` https://developer.android.com/reference/android/app/Notification.Style#internalSetSummaryText(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence cs) ` Set the first line of text after the detail section in the expanded form of the template. | | ` void` | ` https://developer.android.com/reference/android/app/Notification.Style#setBuilder(android.app.Notification.Builder)(https://developer.android.com/reference/android/app/Notification.Builder builder) ` | ||
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Public constructors

### BigTextStyle

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

```
public BigTextStyle ()
```

<br />

<br />

### BigTextStyle

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

```
public BigTextStyle (Notification.Builder builder)
```


**This constructor is deprecated.**   

use `BigTextStyle()`.

<br />

<br />

| Parameters ||
|---|---|
| `builder` | `Notification.Builder` <br /> |

## Public methods

### bigText

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

```
public Notification.BigTextStyle bigText (CharSequence cs)
```

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

<br />

| Parameters ||
|---|---|
| `cs` | `CharSequence` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/app/Notification.BigTextStyle` | <br /> |

### setBigContentTitle

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

```
public Notification.BigTextStyle setBigContentTitle (CharSequence title)
```

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

<br />

| Parameters ||
|---|---|
| `title` | `CharSequence` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/app/Notification.BigTextStyle` | <br /> |

### setSummaryText

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

```
public Notification.BigTextStyle setSummaryText (CharSequence cs)
```

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

<br />

| Parameters ||
|---|---|
| `cs` | `CharSequence` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/app/Notification.BigTextStyle` | <br /> |