Partager via


UIApplication.CancelLocalNotification(UILocalNotification) Méthode

Définition

Annule une notification locale.

[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

Paramètres

notification
UILocalNotification

Notification locale annulée.

Attributs

Remarques

Si la notification est actuellement affichée, elle est supprimée ; Si elle n’est pas affichée, la notification mise en file d’attente est supprimée.

S’applique à