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

要建立的群組

屬性

備註

建立物件的 NotificationChannel 群組容器。

這可用來重新命名現有的群組。

群組資訊僅用於簡報,不適用於行為。 群組對於通道而言是選擇性的,而且您可以混合屬於不屬於該通道的群組和通道。

例如,如果您的應用程式支援多個帳戶,而且這些帳戶會有類似的通道,您可以為每個具有帳戶特定標籤的帳戶建立群組,而不是將帳戶資訊附加至每個通道的標籤。

android.app.NotificationManager.createNotificationChannelGroup(android.app.NotificationChannelGroup)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於