Class

HMEvent

The abstract base class for a HomeKit event.

Declaration

class HMEvent : NSObject

Topics

Getting Information About the Event

var uniqueIdentifier: UUID

A unique identifier for the event.

class func isSupported(for: HMHome) -> Bool

A Boolean value indicating whether the event can be added to an event trigger on the specified home.

Relationships

Inherits From

Conforms To

See Also

Setting Trigger Events

var events: [HMEvent]

The events that activate the trigger.

Location Events

Events that represent the user's movement among regions.

Time Events

Events based on time, significant occurrences, and time durations.

Characteristic Events

Events based on the capabilities or characteristics of accessories.

Presence Events

Events based on the user's presence in a home.