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
String
- 屬性
備註
刪除指定的通知頻道。 如果你用這個 ID 建立新頻道,刪除的頻道會恢復刪除,設定會跟刪除前一樣。
Android 參考資料。android.app.NotificationManager.deleteNotificationChannel
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。