Class

HMPresenceEvent

An event that triggers based on the presence of users in the home.

Declaration

class HMPresenceEvent : HMEvent

Topics

Creating a Presence Event

init(presenceEventType: HMPresenceEventType, presenceUserType: HMPresenceEventUserType)

Creates a new presence event with the specified event and user presence types.

Inspecting a Presence Event

var presenceEventType: HMPresenceEventType

The event type that triggers the presence event.

var presenceUserType: HMPresenceEventUserType

The user type whose presence triggers the event.

See Also

User Presence

class HMMutablePresenceEvent

A mutable event that triggers based on the presence of users in the home.

enum HMPresenceEventType

The user presence type that triggers a presence event.

enum HMPresenceEventUserType

The group of users that triggers a presence event.