NotificationManager.DeleteNotificationChannel(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
删除给定的通知通道。
[Android.Runtime.Register("deleteNotificationChannel", "(Ljava/lang/String;)V", "GetDeleteNotificationChannel_Ljava_lang_String_Handler", ApiSince=26)]
public virtual void DeleteNotificationChannel (string? channelId);
[<Android.Runtime.Register("deleteNotificationChannel", "(Ljava/lang/String;)V", "GetDeleteNotificationChannel_Ljava_lang_String_Handler", ApiSince=26)>]
abstract member DeleteNotificationChannel : string -> unit
override this.DeleteNotificationChannel : string -> unit
参数
- channelId
- String
- 属性
注解
删除给定的通知通道。
如果 #createNotificationChannel(NotificationChannel) create
具有此同一 ID 的新通道,则删除的通道将取消删除,其之前具有的所有相同设置。
适用于 . 的 android.app.NotificationManager.deleteNotificationChannel(java.lang.String)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。