// HMPresenceEvent.h // HomeKit // // Copyright (c) 2017 Apple Inc. All rights reserved. #import #import #import #import NS_ASSUME_NONNULL_BEGIN /*! * @brief This class is used to represent the presence of users in a home. */ HM_EXTERN API_AVAILABLE(ios(11.0), watchos(4.0), tvos(11.0), macCatalyst(14.0)) API_UNAVAILABLE(macos) @interface HMPresenceEvent : HMEvent - (instancetype)init NS_UNAVAILABLE; /*! * @brief Creates a presence based event. * * @param presenceEventType The event type desired for the event. * * @param presenceUserType The user type whose presence will trigger the event. * * @return Instance object representing the presence event. */ - (instancetype)initWithPresenceEventType:(HMPresenceEventType)presenceEventType presenceUserType:(HMPresenceEventUserType)presenceUserType; /*! * @brief presenceEventType The event type that will trigger the event. */ @property (readonly, nonatomic) HMPresenceEventType presenceEventType; /*! * @brief presenceUserType The user type whose presence will trigger the event. */ @property (readonly, nonatomic) HMPresenceEventUserType presenceUserType; @end /*! * @brief This class is used to represent the presence of users in a home. */ HM_EXTERN API_AVAILABLE(ios(11.0), watchos(4.0), tvos(11.0), macCatalyst(14.0)) API_UNAVAILABLE(macos) @interface HMMutablePresenceEvent : HMPresenceEvent - (instancetype)init NS_UNAVAILABLE; /*! * @brief presenceEventType The event type that will trigger the event. */ @property (readwrite, nonatomic) HMPresenceEventType presenceEventType; /*! * @brief presenceUserType The user type whose presence will trigger the event. */ @property (readwrite, nonatomic) HMPresenceEventUserType presenceUserType; @end NS_ASSUME_NONNULL_END