NotificationManager.CreateNotificationChannelGroup 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为 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 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。