Share via


NotificationManager.CreateNotificationChannelGroup Methode

Definition

Erstellt einen Gruppencontainer für NotificationChannel Objekte.

[Android.Runtime.Register("createNotificationChannelGroup", "(Landroid/app/NotificationChannelGroup;)V", "GetCreateNotificationChannelGroup_Landroid_app_NotificationChannelGroup_Handler", ApiSince=26)]
public virtual void CreateNotificationChannelGroup (Android.App.NotificationChannelGroup group);
[<Android.Runtime.Register("createNotificationChannelGroup", "(Landroid/app/NotificationChannelGroup;)V", "GetCreateNotificationChannelGroup_Landroid_app_NotificationChannelGroup_Handler", ApiSince=26)>]
abstract member CreateNotificationChannelGroup : Android.App.NotificationChannelGroup -> unit
override this.CreateNotificationChannelGroup : Android.App.NotificationChannelGroup -> unit

Parameter

group
NotificationChannelGroup

Die zu erstellende Gruppe

Attribute

Hinweise

Erstellt einen Gruppencontainer für NotificationChannel Objekte.

Dies kann verwendet werden, um eine vorhandene Gruppe umzubenennen.

Gruppeninformationen werden nur für die Präsentation und nicht für das Verhalten verwendet. Gruppen sind für Kanäle optional, und Sie können eine Mischung aus Kanälen haben, die zu Gruppen und Kanälen gehören, die dies nicht tun.

Wenn Ihre Anwendung beispielsweise mehrere Konten unterstützt und diese Konten über ähnliche Kanäle verfügen, können Sie eine Gruppe für jedes Konto mit kontospezifischen Bezeichnungen erstellen, anstatt Kontoinformationen an die Bezeichnung jedes Kanals anzufügen.

Java-Dokumentation für android.app.NotificationManager.createNotificationChannelGroup(android.app.NotificationChannelGroup).

Teile dieser Seite sind Änderungen, die auf Arbeiten basieren, die vom Android Open Source Project erstellt und freigegeben wurden und gemäß den In der Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: