NotificationManager.DeleteNotificationChannel(String) Method

Definition

Deletes the given notification channel.

[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

Parameters

channelId
String

String

Attributes

Remarks

Deletes the given notification channel. If you create a new channel with this same id, the deleted channel will be un-deleted with all of the same settings it had before it was deleted.

Android reference for android.app.NotificationManager.deleteNotificationChannel.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to