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>
列表:要尝试创建的通道列表。 此值不能为 null。
- 特性
注解
创建多个通知通道,可将不同的通知发布到该通道。 请参阅 createNotificationChannel(NotificationChannel)。
Android 参考。android.app.NotificationManager.createNotificationChannels
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。