共用方式為


NotificationManager.DeleteNotificationChannel(String) 方法

定義

刪除指定的通知通道。

[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 擁有這個相同標識碼的新通道,已刪除的通道將會與刪除之前的所有相同設定一起取消刪除。

android.app.NotificationManager.deleteNotificationChannel(java.lang.String)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於