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

NotificationChannelGroup: Die zu erstellende Gruppe. Dieser Wert darf nicht NULL sein.

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 nicht.

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

Android-Referenz für android.app.NotificationManager.createNotificationChannelGroup.

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: