Class

HMTimerTrigger

A trigger based on periodic timers.

Overview

When a timer trigger is enabled using enable(_:completionHandler:), the system checks to verify that the timer trigger’s fire date, time zone, and recurrence rules yield a next fire date that is in the future.

Topics

Managing Timer Triggers

var fireDate: Date

The time at which the trigger will next fire.

func updateFireDate(Date, completionHandler: (Error?) -> Void)

Updates the next fire date for the trigger.

var recurrence: DateComponents?

The interval on which to repeat firing the trigger.

var recurrenceCalendar: Calendar?

The calendar in which the recurrence value is evaluated.

var timeZone: TimeZone?

The timezone in which to evaluate the fire time.

Relationships

Inherits From

See Also

Triggers and Actions

class HMTrigger

A trigger event, used to trigger one or more action sets when the conditions of the trigger are satisfied.

class HMActionSet

A set of actions to be applied as a single set.

class HMCharacteristicWriteAction

An action in an action set that writes a value to a characteristic.

class HMAction

An abstract base class for actions in HomeKit.