UIApplication.CancelLocalNotification(UILocalNotification) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.