NotificationManager.CreateNotificationChannels 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立多個通知頻道,讓不同通知可以發布。
[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 所創建與分享的作品,並依授權條款所描述的使用進行修改。