Notification.Builder.SetGroup(String) Method

Definition

Set this notification to be part of a group of notifications sharing the same key.

[Android.Runtime.Register("setGroup", "(Ljava/lang/String;)Landroid/app/Notification$Builder;", "GetSetGroup_Ljava_lang_String_Handler")]
public virtual Android.App.Notification.Builder SetGroup(string? groupKey);
[<Android.Runtime.Register("setGroup", "(Ljava/lang/String;)Landroid/app/Notification$Builder;", "GetSetGroup_Ljava_lang_String_Handler")>]
abstract member SetGroup : string -> Android.App.Notification.Builder
override this.SetGroup : string -> Android.App.Notification.Builder

Parameters

groupKey
String

String: the group key of the group

Returns

This Android.App.Notification.Builder instance, allowing calls to be chained.

Attributes

Remarks

Set this notification to be part of a group of notifications sharing the same key. Grouped notifications may display in a cluster or stack on devices which support such rendering. To make this notification the summary for its group, also call setGroupSummary(boolean). A sort order can be specified for group members by using setSortKey(String).

Android reference for android.app.Notification.Builder.setGroup.

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.

Applies to