Share via


NotificationChannelGroup Constructors

Definition

Overloads

NotificationChannelGroup(String, ICharSequence)

Creates a notification channel group.

NotificationChannelGroup(String, String)

NotificationChannelGroup(String, ICharSequence)

Creates a notification channel group.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;)V", "", ApiSince=26)]
public NotificationChannelGroup (string? id, Java.Lang.ICharSequence? name);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;)V", "", ApiSince=26)>]
new Android.App.NotificationChannelGroup : string * Java.Lang.ICharSequence -> Android.App.NotificationChannelGroup

Parameters

id
String

The id of the group. Must be unique per package. the value may be truncated if it is too long.

name
ICharSequence

The user visible name of the group. You can rename this group when the system locale changes by listening for the Intent#ACTION_LOCALE_CHANGED broadcast. <p>The recommended maximum length is 40 characters; the value may be truncated if it is too long.

Attributes

Remarks

Creates a notification channel group.

Java documentation for android.app.NotificationChannelGroup.NotificationChannelGroup(java.lang.String, java.lang.CharSequence).

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

NotificationChannelGroup(String, String)

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;)V", "", ApiSince=26)]
public NotificationChannelGroup (string? id, string? name);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;)V", "", ApiSince=26)>]
new Android.App.NotificationChannelGroup : string * string -> Android.App.NotificationChannelGroup

Parameters

id
String
name
String
Attributes

Remarks

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