Contents

scheduleLocalNotification(_:)

Schedules a local notification for delivery at its encapsulated date and time.

Declaration

func scheduleLocalNotification(_ notification: UILocalNotification)

Parameters

  • notification:

    The local notification object that you want to schedule. This object contains information about when to deliver the notification and what to do when that date occurs. The system keeps a copy of this object so you may release the object once it is scheduled.

Discussion

Prior to scheduling any local notifications, you must call the registerUserNotificationSettings(_:) method to let the system know what types of alerts, if any, you plan to display to the user.

See Also

Deprecated methods