UIApplication.CancelLocalNotification(UILocalNotification) Метод

Определение

Отменяет локальное уведомление.

[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

Параметры

notification
UILocalNotification

Локальное уведомление, которое отменено.

Атрибуты

Комментарии

Если уведомление отображается в данный момент, оно удаляется; Если оно не отображается, уведомление в очереди удаляется.

Применяется к