Notification.MessagingStyle.SetGroupConversation(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets whether this conversation notification represents a group.
[Android.Runtime.Register("setGroupConversation", "(Z)Landroid/app/Notification$MessagingStyle;", "GetSetGroupConversation_ZHandler", ApiSince=28)]
public virtual Android.App.Notification.MessagingStyle? SetGroupConversation(bool isGroupConversation);
[<Android.Runtime.Register("setGroupConversation", "(Z)Landroid/app/Notification$MessagingStyle;", "GetSetGroupConversation_ZHandler", ApiSince=28)>]
abstract member SetGroupConversation : bool -> Android.App.Notification.MessagingStyle
override this.SetGroupConversation : bool -> Android.App.Notification.MessagingStyle
Parameters
- isGroupConversation
- Boolean
boolean: true if the conversation represents a group, false otherwise.
Returns
this object for method chaining
- Attributes
Remarks
Sets whether this conversation notification represents a group. If the app is targeting Android P, this is required if the app wants to display the largeIcon set with Notification.Builder.setLargeIcon(Bitmap), otherwise it will be hidden.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-08-03 UTC.
Android reference for android.app.Notification.MessagingStyle.setGroupConversation.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.