语言

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>

列表:要尝试创建的通道列表。 此值不能为 null。

特性

注解

创建多个通知通道,可将不同的通知发布到该通道。 请参阅 createNotificationChannel(NotificationChannel)。

Android 参考。android.app.NotificationManager.createNotificationChannels

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于