Class
ScheduleBuilder
An object that can be used to build a scheduled job
final class ScheduleBuilder
Topics
Structures
struct DailyAn object to build aDailyscheduled jobstruct Hour12Represents an hour numeral that must be in 12 hour formatstruct Hour24Represents an hour numeral that must be in 24 hour formatstruct HourlyAn object to build aHourlyscheduled jobstruct MinuteDescribes a minute numeralstruct MinutelyAn object to build aEveryMinutescheduled jobstruct MonthlyAn object to build aMonthlyscheduled jobstruct SecondDescribes a second numeralstruct TimeDescribes a time of daystruct WeeklyAn object to build aWeeklyscheduled jobstruct YearlyAn object to build aYearlyscheduled job
Initializers
Instance Methods
func at(Date)Schedules a job at a specific datefunc daily() -> ScheduleBuilder.DailyCreates a daily scheduled job for further buildingfunc every(days: Int)Runs a job every given number of daysfunc every(hours: Int)Runs a job every given number of hoursfunc every(minutes: Int)Runs a job every given number of minutesfunc every(seconds: Int)Runs a job every given number of secondsfunc every(weeks: Int)Runs a job every given number of weeksfunc everySecond()Runs a job every secondfunc hourly() -> ScheduleBuilder.HourlyCreates a hourly scheduled job for further buildingfunc minutely() -> ScheduleBuilder.MinutelyCreates a minutely scheduled job for further buildingfunc monthly() -> ScheduleBuilder.MonthlyCreates a monthly scheduled job for further buildingfunc nextDate(current: Date) -> Date?Retrieves the next date after the one given.func using(Calendar) -> ScheduleBuilderSchedules a job using a specificCalendarfunc weekly() -> ScheduleBuilder.WeeklyCreates a weekly scheduled job for further buildingfunc yearly() -> ScheduleBuilder.YearlyCreates a yearly scheduled job for further building
Enumerations
enum DayDescribes a dayenum HourPeriodA period of hours - eitheramorpmenum MonthMonths of the yearenum WeekdayDescribes a day of the week
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype