cancelLocalNotification(_:)
Cancels the delivery of the specified scheduled local notification.
Declaration
func cancelLocalNotification(_ notification: UILocalNotification)Parameters
- notification:
The local notification to cancel.
Discussion
Calling this method also programmatically dismisses the notification if it is currently displaying an alert.
See Also
Deprecated methods
requestSceneSessionActivation(_:userActivity:options:errorHandler:)beginIgnoringInteractionEvents()endIgnoringInteractionEvents()setMinimumBackgroundFetchInterval(_:)scheduleLocalNotification(_:)presentLocalNotificationNow(_:)cancelAllLocalNotifications()setKeepAliveTimeout(_:handler:)UIMinimumKeepAliveTimeoutclearKeepAliveTimeout()setStatusBarHidden(_:with:)setStatusBarStyle(_:animated:)setStatusBarOrientation(_:animated:)registerUserNotificationSettings(_:)registerForRemoteNotifications(matching:)