語言

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

String

屬性

備註

刪除指定的通知頻道。 如果你用這個 ID 建立新頻道,刪除的頻道會恢復刪除,設定會跟刪除前一樣。

Android 參考資料。android.app.NotificationManager.deleteNotificationChannel

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於