# NotificationCompat.MessagingStyle

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/app/NotificationCompat.java+class:androidx.core.app.NotificationCompat.MessagingStyle) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***


```
public class NotificationCompat.MessagingStyle extends NotificationCompat.Style
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.core.app.NotificationCompat.Style](https://developer.android.com/reference/androidx/core/app/NotificationCompat.Style) ||
|   | ↳ | [androidx.core.app.NotificationCompat.MessagingStyle](https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle) |

*** ** * ** ***

Helper class for generating large-format notifications that include multiple back-and-forth messages of varying types between any number of people. In order to get a backwards compatible behavior, the app needs to use the v7 version of the notification builder together with this style, otherwise the user will see the normal notification view. Use `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#setConversationTitle(java.lang.CharSequence)` to set a conversation title for group chats with more than two people. This could be the user-created name of the group or, if it doesn't have a specific name, a list of the participants in the conversation. Do not set a conversation title for one-on-one chats, since platforms use the existence of this field as a hint that the conversation is a group. This class is a "rebuilder": It attaches to a Builder object and modifies its behavior, like so:

```
Notification notification = new Notification.Builder()
    .setContentTitle("2 new messages with " + sender.toString())
    .setContentText(subject)
    .setSmallIcon(R.drawable.new_message)
    .setLargeIcon(aBitmap)
    .setStyle(new Notification.MessagingStyle(resources.getString(R.string.reply_name))
        .addMessage(messages[0].getText(), messages[0].getTime(), messages[0].getSender())
        .addMessage(messages[1].getText(), messages[1].getTime(), messages[1].getSender()))
    .build();
```

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message` |

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#MAXIMUM_RETAINED_MESSAGES() = 25` The maximum number of messages that will be retained in the Notification itself (the number displayed is up to the platform). |

| ### Public constructors |
|---|
| `[MessagingStyle](https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#MessagingStyle(java.lang.CharSequence))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/CharSequence.html userDisplayName)` **This method is deprecated.** Use `#MessagingStyle(Person)` instead. <br /> |
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#MessagingStyle(androidx.core.app.Person)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/Person user)` Creates a new `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` object. |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#addCompatExtras(android.os.Bundle)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/os/Bundle.html extras)` This is called with the extras of the framework `https://developer.android.com/reference/android/app/Notification.html` during the `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#build()` process, after `apply()` has been called. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#addHistoricMessage(androidx.core.app.NotificationCompat.MessagingStyle.Message)( @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message message )` Adds a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message` for historic context in this notification. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#addMessage(androidx.core.app.NotificationCompat.MessagingStyle.Message)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message message)` Adds a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message` for display in this notification. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#addMessage(java.lang.CharSequence,long,androidx.core.app.Person)( @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html text, long timestamp, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/app/Person person )` Adds a message for display by this notification. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` | `[addMessage](https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#addMessage(java.lang.CharSequence,long,java.lang.CharSequence))( @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html text, long timestamp, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html sender )` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#addMessage(java.lang.CharSequence,long,androidx.core.app.Person)` or `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#addMessage(androidx.core.app.NotificationCompat.MessagingStyle.Message)` <br /> |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#extractMessagingStyleFromNotification(android.app.Notification)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/app/Notification.html notification )` Retrieves a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` from a `https://developer.android.com/reference/android/app/Notification.html`, enabling an application that has set a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` using `https://developer.android.com/reference/androidx/core/app/NotificationCompat` or `https://developer.android.com/reference/android/app/Notification.Builder.html` to send messaging information to another application using `https://developer.android.com/reference/androidx/core/app/NotificationCompat`, regardless of the API level of the system. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#getConversationTitle()()` Return the title to be displayed on this conversation. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message>` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#getHistoricMessages()()` Gets the list of historic `Message`s in the notification. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message>` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#getMessages()()` Gets the list of `Message` objects that represent the notification. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/Person` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#getUser()()` Returns the person to be used for any replies sent by the user. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html` | `[getUserDisplayName](https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#getUserDisplayName())()` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#getUser()` instead. <br /> |
| `boolean` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#isGroupConversation()()` Returns `true` if this notification represents a group conversation, otherwise `false`. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#setConversationTitle(java.lang.CharSequence)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html conversationTitle)` Sets the title to be displayed on this conversation. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#setGroupConversation(boolean)(boolean isGroupConversation)` Sets whether this conversation notification represents a group. |

### Inherited methods

From [androidx.core.app.NotificationCompat.Style](https://developer.android.com/reference/androidx/core/app/NotificationCompat.Style) `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/app/Notification.html` `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Style#build()()`

If this Style object has been set on a notification builder, this method will build that notification and return it.
`void` `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Style#setBuilder(androidx.core.app.NotificationCompat.Builder)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder builder)`

Link this rich notification style with a notification builder.

## Constants

### MAXIMUM_RETAINED_MESSAGES

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final int MAXIMUM_RETAINED_MESSAGES = 25
```

The maximum number of messages that will be retained in the Notification itself (the number displayed is up to the platform).

## Public constructors

### MessagingStyle

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public [MessagingStyle](https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#MessagingStyle(java.lang.CharSequence))(@NonNull CharSequence userDisplayName)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `#MessagingStyle(Person)` instead.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/CharSequence.html userDisplayName` | Required - the name to be displayed for any replies sent by the user before the posting app reposts the notification with those messages after they've been actually sent and in previous messages sent by the user added in `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#addMessage(androidx.core.app.NotificationCompat.MessagingStyle.Message)` |

### MessagingStyle

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public MessagingStyle(@NonNull Person user)
```

Creates a new `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` object. Note that `https://developer.android.com/reference/androidx/core/app/Person` must have a non-empty name.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/Person user` | This `https://developer.android.com/reference/androidx/core/app/Person`'s name will be shown when this app's notification is being replied to. It's used temporarily so the app has time to process the send request and repost the notification with updates to the conversation. |

## Public methods

### addCompatExtras

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public void addCompatExtras(@NonNull Bundle extras)
```

This is called with the extras of the framework `https://developer.android.com/reference/android/app/Notification.html` during the `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder#build()` process, after `apply()` has been called. This means that you only need to add data which won't be populated by the framework Notification which was built so far. Moreover, recovering builders and styles is only supported at API 19 and above, no implementation is required for current BigTextStyle, BigPictureStyle, or InboxStyle.

### addHistoricMessage

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public @NonNull NotificationCompat.MessagingStyle addHistoricMessage(
    @Nullable NotificationCompat.MessagingStyle.Message message
)
```

Adds a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message` for historic context in this notification.

Messages should be added as historic if they are not the main subject of the notification but may give context to a conversation. The system may choose to present them only when relevant, e.g. when replying to a message through a `https://developer.android.com/reference/androidx/core/app/RemoteInput`.

The messages should be added in chronologic order, i.e. the oldest first, the newest last.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message message` | The historic `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message` to be added |

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` | this object for method chaining |

### addMessage

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public @NonNull NotificationCompat.MessagingStyle addMessage(@Nullable NotificationCompat.MessagingStyle.Message message)
```

Adds a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message` for display in this notification.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message message` | The `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message` to be displayed |

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` | this object for method chaining |

### addMessage

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public @NonNull NotificationCompat.MessagingStyle addMessage(
    @Nullable CharSequence text,
    long timestamp,
    @Nullable Person person
)
```

Adds a message for display by this notification. Convenience call for `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#addMessage(androidx.core.app.NotificationCompat.MessagingStyle.Message)`.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` | this for method chaining |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message#Message(java.lang.CharSequence,long,androidx.core.app.Person)` |   |

### addMessage

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public @NonNull NotificationCompat.MessagingStyle [addMessage](https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#addMessage(java.lang.CharSequence,long,java.lang.CharSequence))(
    @Nullable CharSequence text,
    long timestamp,
    @Nullable CharSequence sender
)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#addMessage(java.lang.CharSequence,long,androidx.core.app.Person)` or `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#addMessage(androidx.core.app.NotificationCompat.MessagingStyle.Message)`

Adds a message for display by this notification. Convenience call for a simple `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message` in `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#addMessage(androidx.core.app.NotificationCompat.MessagingStyle.Message)`

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html text` | A `https://developer.android.com/reference/java/lang/CharSequence.html` to be displayed as the message content |
| `long timestamp` | Time at which the message arrived in ms since Unix epoch |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html sender` | A `https://developer.android.com/reference/java/lang/CharSequence.html` to be used for displaying the name of the sender. Should be `null` for messages by the current user, in which case the platform will insert `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#getUserDisplayName()`. Should be unique amongst all individuals in the conversation, and should be consistent during re-posts of the notification. |

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` | this object for method chaining |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle.Message#Message(java.lang.CharSequence,long,java.lang.CharSequence)` |   |

### extractMessagingStyleFromNotification

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static @Nullable NotificationCompat.MessagingStyle extractMessagingStyleFromNotification(
    @NonNull Notification notification
)
```

Retrieves a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` from a `https://developer.android.com/reference/android/app/Notification.html`, enabling an application that has set a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` using `https://developer.android.com/reference/androidx/core/app/NotificationCompat` or `https://developer.android.com/reference/android/app/Notification.Builder.html` to send messaging information to another application using `https://developer.android.com/reference/androidx/core/app/NotificationCompat`, regardless of the API level of the system.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` | `null` if there is no `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` set, or if the SDK version is \<`16` (JellyBean). |

### getConversationTitle

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public @Nullable CharSequence getConversationTitle()
```

Return the title to be displayed on this conversation. Can be `null`.

### getHistoricMessages

Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/core#1.5.0)

```
public @NonNull List<NotificationCompat.MessagingStyle.Message> getHistoricMessages()
```

Gets the list of historic `Message`s in the notification.

### getMessages

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public @NonNull List<NotificationCompat.MessagingStyle.Message> getMessages()
```

Gets the list of `Message` objects that represent the notification.

### getUser

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public @NonNull Person getUser()
```

Returns the person to be used for any replies sent by the user.

### getUserDisplayName

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public @Nullable CharSequence [getUserDisplayName](https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#getUserDisplayName())()
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#getUser()` instead.

Returns the name to be displayed for any replies sent by the user.

### isGroupConversation

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public boolean isGroupConversation()
```

Returns `true` if this notification represents a group conversation, otherwise `false`.

If the application that generated this `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` targets an SDK version less than `https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#P` and `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#setGroupConversation(boolean)` was not called, this method becomes dependent on whether or not the conversation title is set; returning `true` if the conversation title is a non-null value, or `false` otherwise. This is to maintain backwards compatibility. Regardless, `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#setGroupConversation(boolean)` has precedence over this legacy behavior. From `https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#P` forward, `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#setConversationTitle(java.lang.CharSequence)` has no affect on group conversation status.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#setConversationTitle(java.lang.CharSequence)` |   |

### setConversationTitle

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public @NonNull NotificationCompat.MessagingStyle setConversationTitle(@Nullable CharSequence conversationTitle)
```

Sets the title to be displayed on this conversation. May be set to `null`.

This API's behavior was changed in SDK version `https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#P`. If your application's target version is less than `https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#P`, setting a conversation title to a non-null value will make `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#isGroupConversation()` return `true` and passing `null` will make it return `false`. This behavior can be overridden by calling `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#setGroupConversation(boolean)` regardless of SDK version. In `https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#P` and above, this method does not affect group conversation settings.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/CharSequence.html conversationTitle` | Title displayed for this conversation |

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` | this object for method chaining |

### setGroupConversation

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public @NonNull NotificationCompat.MessagingStyle setGroupConversation(boolean isGroupConversation)
```

Sets whether this conversation notification represents a group. An app should set isGroupConversation `true` to mark that the conversation involves multiple people.

Group conversation notifications may display additional group-related context not present in non-group notifications.

| Parameters |
|---|---|
| `boolean isGroupConversation` | `true` if the conversation represents a group, `false` otherwise. |

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` | this object for method chaining |

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle#isGroupConversation()` |   |