SwiftenumHomeDataModel
enum HomeDataModel.Event
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.Equatable
- protocolSwift.Hashable
Members 6
- case
case characteristic(HomeDataModel.Event.CharacteristicEvent) - case
case location(HomeDataModel.Event.LocationEvent) - case
case time(HomeDataModel.Event.TimeEvent, HomeDataModel.TriggerRecurrenceWeekdays) - func
createEvent(in: HMHome) throws -> HMEvent - init
init(event: HMEvent, in: HMEventTrigger) throws -> HomeDataModel.Event - var
var debugDescription: String { get }
Header
enum Event { struct CharacteristicEvent { enum Condition { case value(HomeDataModel.CharacteristicKind.Value) case risesAbove(HomeDataModel.CharacteristicKind.Value) case dropsBelow(HomeDataModel.CharacteristicKind.Value) var debugDescription: Swift.String { get } } enum Error { case unrecognizedTriggerValue((any __C.NSCopying)?) case serviceNotFound case noCharacteristicFoundOnService case nonNumericValueRisesAboveOrDropsBelowCondition case thresholdNumberRangeIsNil case thresholdNumberRangeFallsWithinUnsupported } let serviceID: Foundation.UUID let characteristicKind: HomeDataModel.CharacteristicKind var condition: HomeDataModel.Event.CharacteristicEvent.Condition init(event: __C.HMCharacteristicEvent<any __C.NSCopying>) throws init(event: __C.HMCharacteristicThresholdRangeEvent) throws init(serviceID: Foundation.UUID, characteristicKind: HomeDataModel.CharacteristicKind, condition: HomeDataModel.Event.CharacteristicEvent.Condition) var debugDescription: Swift.String { get } func createEvent(in: __C.HMHome) throws -> __C.HMEvent func createEvent(for: __C.HMCharacteristic) throws -> __C.HMEvent } enum Error { case unknownEventType } enum LocationEvent { enum UserType { case users(Swift.Set<Foundation.UUID>) case currentUser case allUsers } struct CircularRegion { let latitude: Swift.Double let longitude: Swift.Double let radius: Swift.Double } enum Error { case customUserSetEmpty case noUsersFoundInHome case eventHasNoRegion case unknownPresenceType } case home(__C.HMPresenceEventType, HomeDataModel.Event.LocationEvent.UserType) case region(HomeDataModel.Event.LocationEvent.CircularRegion) init(event: __C.HMLocationEvent) throws init(event: __C.HMPresenceEvent) throws var debugDescription: Swift.String { get } func createEvent(in: __C.HMHome) throws -> __C.HMEvent func staticUsers(for: any Swift.Collection<Foundation.UUID>, in: HomeDataModel.StateSnapshot) throws -> [HomeDataModel.StaticUser] func users(for: any Swift.Collection<Foundation.UUID>, in: __C.HMHome) throws -> [__C.HMUser] } enum TimeEvent { enum SignificantTime { case sunrise case sunset } struct TimeComponents { let timezone: Foundation.TimeZone let hour: Swift.UInt8 let minute: Swift.UInt8 let second: Swift.UInt8 init(event: __C.HMCalendarEvent) throws init(timezone: Foundation.TimeZone, hour: Swift.UInt8, minute: Swift.UInt8, second: Swift.UInt8) func createEvent() -> __C.HMCalendarEvent } case date(Foundation.Date) case timeComponents(HomeDataModel.Event.TimeEvent.TimeComponents) case significantEvent(HomeDataModel.Event.TimeEvent.SignificantTime, offset: Foundation.DateComponents?) init(event: __C.HMCalendarEvent) throws init(event: __C.HMSignificantTimeEvent) throws var debugDescription: Swift.String { get } func createEvent() -> __C.HMTimeEvent } enum DateEventError { case invalidSignificantEventValue(__C.HMSignificantEvent) case invalidDateComponentsForTimeEvent case invalidDateComponentsForDateEvent } case location(HomeDataModel.Event.LocationEvent) case time(HomeDataModel.Event.TimeEvent, HomeDataModel.TriggerRecurrenceWeekdays) case characteristic(HomeDataModel.Event.CharacteristicEvent) init(event: __C.HMEvent, in: __C.HMEventTrigger) throws var debugDescription: Swift.String { get } func createEvent(in: __C.HMHome) throws -> __C.HMEvent }