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.InboxStyle#inhfields) \| [Ctors](https://developer.android.com/reference/android/app/Notification.InboxStyle#pubctors) \| [Methods](https://developer.android.com/reference/android/app/Notification.InboxStyle#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/app/Notification.InboxStyle#inhmethods)

# Notification.InboxStyle

*** ** * ** ***

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


`
public
static


class
Notification.InboxStyle
`


`


`

`

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.InboxStyle |

<br />

*** ** * ** ***

Helper class for generating large-format notifications that include a list of (up to 5) strings.

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

```scdoc
 Notification notif = new Notification.Builder(mContext)
     .setContentTitle("5 New mails from " + sender.toString())
     .setContentText(subject)
     .setSmallIcon(R.drawable.new_mail)
     .setLargeIcon(aBitmap)
     .setStyle(new Notification.InboxStyle()
         .addLine(str1)
         .addLine(str2)
         .setContentTitle("")
         .setSummaryText("+3 more"))
     .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.InboxStyle#InboxStyle()() ` |
| ` https://developer.android.com/reference/android/app/Notification.InboxStyle#InboxStyle(android.app.Notification.Builder)(https://developer.android.com/reference/android/app/Notification.Builder builder) ` *This constructor is deprecated. use `InboxStyle()`.* |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/app/Notification.InboxStyle` | ` https://developer.android.com/reference/android/app/Notification.InboxStyle#addLine(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence cs) ` Append a line to the digest section of the Inbox notification. |
| ` https://developer.android.com/reference/android/app/Notification.InboxStyle` | ` https://developer.android.com/reference/android/app/Notification.InboxStyle#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.InboxStyle` | ` https://developer.android.com/reference/android/app/Notification.InboxStyle#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

### InboxStyle

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

```
public InboxStyle ()
```

<br />

<br />

### InboxStyle

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

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


**This constructor is deprecated.**   

use `InboxStyle()`.

<br />

<br />

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

## Public methods

### addLine

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

```
public Notification.InboxStyle addLine (CharSequence cs)
```

Append a line to the digest section of the Inbox notification.

<br />

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

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

### setBigContentTitle

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

```
public Notification.InboxStyle 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.InboxStyle` | <br /> |

### setSummaryText

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

```
public Notification.InboxStyle 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.InboxStyle` | <br /> |