UIApplication.CancelLocalNotification(UILocalNotification) Method

Definition

Cancels a local notification.

[Foundation.Export("cancelLocalNotification:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UNUserNotificationCenter.RemovePendingNotificationRequests' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void CancelLocalNotification (UIKit.UILocalNotification notification);
abstract member CancelLocalNotification : UIKit.UILocalNotification -> unit
override this.CancelLocalNotification : UIKit.UILocalNotification -> unit

Parameters

notification
UILocalNotification

The local notification that is cancelled.

Attributes

Remarks

If the notification is currently displayed, it is removed; If it is not displayed, the queued notification is dropped.

Applies to