Freigeben über


UIApplication.CancelLocalNotification(UILocalNotification) Methode

Definition

Bricht eine lokale Benachrichtigung ab.

[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

Parameter

notification
UILocalNotification

Die lokale Benachrichtigung, die abgebrochen wird.

Attribute

Hinweise

Wenn die Benachrichtigung derzeit angezeigt wird, wird sie entfernt. Wenn sie nicht angezeigt wird, wird die Benachrichtigung in der Warteschlange gelöscht.

Gilt für: