One Logo Pool Ball
HomeKit · IOS API REFERENCE

HMTimerTrigger

class · iOS 8.0+ · SDK 27.1

class HMTimerTrigger

Members (9)

init · iOS 16.4+

init

TypeScript
static initNameFireDateRecurrence(name: string, fireDate: globalThis.Date, recurrence?: (_Foundation_DateComponents) | null): HMTimerTrigger
Swift declaration
init(name: String, fireDate: Date, recurrence: DateComponents?)
init · iOS 8.0+ · Deprecated in iOS 16.4

init

TypeScript
static initNameFireDateTimeZoneRecurrenceRecurrenceCalendar(name: string, fireDate: globalThis.Date, timeZone?: (_Foundation_TimeZone) | null, recurrence?: (_Foundation_DateComponents) | null, recurrenceCalendar?: (_Foundation_Calendar) | null): HMTimerTrigger
Swift declaration
init(name: String, fireDate: Date, timeZone: TimeZone?, recurrence: DateComponents?, recurrenceCalendar: Calendar?)
method · iOS 8.0+

updateFireDate

TypeScript
updateFireDate(fireDate: globalThis.Date, completion: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func updateFireDate(_ fireDate: Date) async throws
method · iOS 8.0+

updateRecurrence

TypeScript
updateRecurrence(recurrence: (_Foundation_DateComponents) | null, completion: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func updateRecurrence(_ recurrence: DateComponents?) async throws
method · iOS 8.0+ · Deprecated in iOS 16.4

updateTimeZone

TypeScript
updateTimeZone(timeZone: (_Foundation_TimeZone) | null, completion: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func updateTimeZone(_ timeZone: TimeZone?) async throws
get · iOS 8.0+

fireDate

TypeScript
get fireDate(): globalThis.Date
Swift declaration
var fireDate: Date { get }
get · iOS 8.0+

recurrence

TypeScript
get recurrence(): (_Foundation_DateComponents) | null
Swift declaration
var recurrence: DateComponents? { get }
get · iOS 8.0+ · Deprecated in iOS 16.4

recurrenceCalendar

TypeScript
get recurrenceCalendar(): (_Foundation_Calendar) | null
Swift declaration
var recurrenceCalendar: Calendar? { get }
get · iOS 8.0+ · Deprecated in iOS 16.4

timeZone

TypeScript
get timeZone(): (_Foundation_TimeZone) | null
Swift declaration
var timeZone: TimeZone? { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

HMTimerTrigger.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All HomeKit types →