RSDSchedule

public protocol RSDSchedule : RSDScheduleTime

The RSDSchedule protocol can be used to describe a local notification schedule. This provides a shared interface for getting and setting the time of day and for setting up notifications.

  • The time of the day as a string with the format HH:mm.

    Declaration

    Swift

    var timeOfDayString: String? { get set }
  • Get an array of the date components to use to set up notification triggers. This will return a DateComponents for each notification trigger that would be added to set notifications.

    Note

    The date components will not include the participant’s current timezone.

    Declaration

    Swift

    func notificationTriggers() -> [DateComponents]

    Return Value

    The date components to use to set up a trigger for each scheduling instance.

  • setTime(from:) Extension method

    Set the time by converting from Any.

    Declaration

    Swift

    mutating public func setTime(from value: Any?)