# Notification.InboxStyle

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

# InboxStyle

*** ** * ** ***

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

```
open class InboxStyle : 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.InboxStyle](https://developer.android.com/reference/kotlin/android/app/Notification.InboxStyle#) |

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:  

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

## Summary

|                                                                                                                               Public constructors                                                                                                                                ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [InboxStyle](https://developer.android.com/reference/kotlin/android/app/Notification.InboxStyle#InboxStyle())`()` <br />                                                                                                                                                      |
| [InboxStyle](https://developer.android.com/reference/kotlin/android/app/Notification.InboxStyle#InboxStyle(android.app.Notification.Builder))`(`builder:` `[Notification.Builder](https://developer.android.com/reference/kotlin/android/app/Notification.Builder)!`)` <br /> |

|                                                                                                                                                                                                                          Public methods                                                                                                                                                                                                                           ||
|---------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Notification.InboxStyle](https://developer.android.com/reference/kotlin/android/app/Notification.InboxStyle#)! | [addLine](https://developer.android.com/reference/kotlin/android/app/Notification.InboxStyle#addLine(kotlin.CharSequence))`(`cs:` `[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!`)` Append a line to the digest section of the Inbox notification.                                          |
| open[Notification.InboxStyle](https://developer.android.com/reference/kotlin/android/app/Notification.InboxStyle#)! | [setBigContentTitle](https://developer.android.com/reference/kotlin/android/app/Notification.InboxStyle#setBigContentTitle(kotlin.CharSequence))`(`title:` `[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!`)` Overrides ContentTitle in the expanded form of the template.                   |
| open[Notification.InboxStyle](https://developer.android.com/reference/kotlin/android/app/Notification.InboxStyle#)! | [setSummaryText](https://developer.android.com/reference/kotlin/android/app/Notification.InboxStyle#setSummaryText(kotlin.CharSequence))`(`cs:` `[CharSequence](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[Style](https://developer.android.com/reference/kotlin/android/app/Notification.Style) |-------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Notification](https://developer.android.com/reference/kotlin/android/app/Notification)!        | [build](https://developer.android.com/reference/kotlin/android/app/Notification.Style#build())`()` <br /> Calls[android.app.Notification.Builder#build()](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 /> | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                    | [checkBuilder](https://developer.android.com/reference/kotlin/android/app/Notification.Style#checkBuilder())`()` <br />                                                                                                                                                                                                                                                                                                                               | | [RemoteViews](https://developer.android.com/reference/kotlin/android/widget/RemoteViews.html#)! | [getStandardView](https://developer.android.com/reference/kotlin/android/app/Notification.Style#getStandardView(kotlin.Int))`(`layoutId:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br />                                                                                                                                                                                                                       | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                    | [internalSetBigContentTitle](https://developer.android.com/reference/kotlin/android/app/Notification.Style#internalSetBigContentTitle(kotlin.CharSequence))`(`title:` `[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!`)` <br /> Overrides ContentTitle in the expanded form of the template. This defaults to the value passed to setContentTitle(). <br />                                           | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                    | [internalSetSummaryText](https://developer.android.com/reference/kotlin/android/app/Notification.Style#internalSetSummaryText(kotlin.CharSequence))`(`cs:` `[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!`)` <br /> Set the first line of text after the detail section in the expanded form of the template. <br />                                                                                 | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                    | [setBuilder](https://developer.android.com/reference/kotlin/android/app/Notification.Style#setBuilder(android.app.Notification.Builder))`(`builder:` `[Notification.Builder](https://developer.android.com/reference/kotlin/android/app/Notification.Builder)!`)` <br />                                                                                                                                                                              | ||

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

## Public constructors

### InboxStyle

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

```
InboxStyle()
```  

### InboxStyle

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

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

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

## Public methods

### addLine

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

```
open fun addLine(cs: CharSequence!): Notification.InboxStyle!
```

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

### setBigContentTitle

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

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

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

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