語言

NotificationManager.CreateNotificationChannelGroup 方法

定義

建立一個 NotificationChannel 物件的群組容器。

[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

參數

group
NotificationChannelGroup

NotificationChannelGroup:要建立的群組。 這個值不可能為零值。

屬性

備註

建立一個 NotificationChannel 物件的群組容器。 這可以用來重新命名現有的群組。 群體資訊僅用於呈現,不用於行為。 頻道群組是可選的,你可以混合有屬於群組的頻道和不屬於群組的頻道。

舉例來說,如果你的應用程式支援多個帳號,且這些帳號有相似的頻道,你可以為每個帳號建立一個群組,並標示特定帳號標籤,而不是在每個頻道的標籤上附加帳號資訊。

Android 參考資料。android.app.NotificationManager.createNotificationChannelGroup

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於