Enumeration

HMPresenceEventType

The user presence type that triggers a presence event.

Declaration

typedef enum HMPresenceEventType : NSUInteger {
    ...
} HMPresenceEventType;

Topics

Specifying Presence Type

HMPresenceEventTypeEveryEntry

Triggers the event every time a user enters the home.

HMPresenceEventTypeEveryExit

Triggers the event every time a user leaves the home.

HMPresenceEventTypeFirstEntry

Triggers an event for the first user entering the home.

HMPresenceEventTypeLastExit

Triggers an event when the last user leaves the home.

Using Presence as a Predicate

HMPresenceEventTypeAtHome

Triggers the event when at least one user is in the home.

HMPresenceEventTypeNotAtHome

Triggers the event when there are no users in the home.

See Also

User Presence

HMPresenceEvent

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

HMMutablePresenceEvent

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

HMPresenceEventUserType

The group of users that triggers a presence event.