語言

NotificationManager.CreateNotificationChannels 方法

定義

建立多個通知頻道,讓不同通知可以發布。

[Android.Runtime.Register("createNotificationChannels", "(Ljava/util/List;)V", "GetCreateNotificationChannels_Ljava_util_List_Handler", ApiSince=26)]
public virtual void CreateNotificationChannels(System.Collections.Generic.IList<Android.App.NotificationChannel> channels);
[<Android.Runtime.Register("createNotificationChannels", "(Ljava/util/List;)V", "GetCreateNotificationChannels_Ljava_util_List_Handler", ApiSince=26)>]
abstract member CreateNotificationChannels : System.Collections.Generic.IList<Android.App.NotificationChannel> -> unit
override this.CreateNotificationChannels : System.Collections.Generic.IList<Android.App.NotificationChannel> -> unit

參數

channels
IList<NotificationChannel>

清單:嘗試建立的頻道清單。 這個值不可能為零值。

屬性

備註

建立多個通知頻道,讓不同通知可以發布。 請參見 createNotificationChannel(NotificationChannel)。

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

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

適用於