HomeKit · IOS API REFERENCE
HMEventTrigger
class · iOS 9.0+ · SDK 27.1
class HMEventTrigger
Members (26)
staticpredicateForEvaluatingTrigger
TypeScriptstatic predicateForEvaluatingTriggerOccurringAfter(dateComponents: _Foundation_DateComponents): _Foundation_NSPredicate
Swift declarationclass func predicateForEvaluatingTrigger(occurringAfter dateComponents: DateComponents) -> NSPredicate
static · iOS 11.0+predicateForEvaluatingTriggerOccurring
TypeScriptstatic predicateForEvaluatingTriggerOccurringAfterSignificantEvent(significantEvent: HMSignificantTimeEvent): _Foundation_NSPredicate
Swift declarationclass func predicateForEvaluatingTriggerOccurring(afterSignificantEvent significantEvent: HMSignificantTimeEvent) -> NSPredicate
static · iOS 9.0+ · Deprecated in iOS 11.0predicateForEvaluatingTrigger
TypeScriptstatic predicateForEvaluatingTriggerOccurringAfterApplyingOffset(significantEvent: string, offset?: (_Foundation_DateComponents) | null): _Foundation_NSPredicate
Swift declarationclass func predicateForEvaluatingTrigger(occurringAfter significantEvent: String, applyingOffset offset: DateComponents?) -> NSPredicate
staticpredicateForEvaluatingTrigger
TypeScriptstatic predicateForEvaluatingTriggerOccurringBefore(dateComponents: _Foundation_DateComponents): _Foundation_NSPredicate
Swift declarationclass func predicateForEvaluatingTrigger(occurringBefore dateComponents: DateComponents) -> NSPredicate
static · iOS 11.0+predicateForEvaluatingTriggerOccurring
TypeScriptstatic predicateForEvaluatingTriggerOccurringBeforeSignificantEvent(significantEvent: HMSignificantTimeEvent): _Foundation_NSPredicate
Swift declarationclass func predicateForEvaluatingTriggerOccurring(beforeSignificantEvent significantEvent: HMSignificantTimeEvent) -> NSPredicate
static · iOS 9.0+ · Deprecated in iOS 11.0predicateForEvaluatingTrigger
TypeScriptstatic predicateForEvaluatingTriggerOccurringBeforeApplyingOffset(significantEvent: string, offset?: (_Foundation_DateComponents) | null): _Foundation_NSPredicate
Swift declarationclass func predicateForEvaluatingTrigger(occurringBefore significantEvent: String, applyingOffset offset: DateComponents?) -> NSPredicate
static · iOS 11.0+predicateForEvaluatingTriggerOccurringBetweenDate
TypeScriptstatic predicateForEvaluatingTriggerOccurringBetweenDate(firstDateComponents: _Foundation_DateComponents, secondDateWithComponents: _Foundation_DateComponents): _Foundation_NSPredicate
Swift declarationclass func predicateForEvaluatingTriggerOccurringBetweenDate(with firstDateComponents: DateComponents, secondDateWith secondDateWithComponents: DateComponents) -> NSPredicate
static · iOS 11.0+predicate
TypeScriptstatic predicateForEvaluatingTriggerOccurringBetweenSignificantEventSecondSignificantEvent(firstSignificantEvent: HMSignificantTimeEvent, secondSignificantEvent: HMSignificantTimeEvent): _Foundation_NSPredicate
Swift declarationclass func predicate(forEvaluatingTriggerOccurringBetweenSignificantEvent firstSignificantEvent: HMSignificantTimeEvent, secondSignificantEvent: HMSignificantTimeEvent) -> NSPredicate
staticpredicateForEvaluatingTrigger
TypeScriptstatic predicateForEvaluatingTriggerOccurringOn(dateComponents: _Foundation_DateComponents): _Foundation_NSPredicate
Swift declarationclass func predicateForEvaluatingTrigger(occurringOn dateComponents: DateComponents) -> NSPredicate
staticpredicateForEvaluatingTrigger
TypeScriptstatic predicateForEvaluatingTriggerRelatedByToValue(characteristic: HMCharacteristic, operatorType: _Foundation_NSComparisonPredicate_Operator, value: unknown): _Foundation_NSPredicate
Swift declarationclass func predicateForEvaluatingTrigger(_ characteristic: HMCharacteristic, relatedBy operatorType: NSComparisonPredicate.Operator, toValue value: Any) -> NSPredicate
static · iOS 11.0+predicateForEvaluatingTrigger
TypeScriptstatic predicateForEvaluatingTriggerWithPresence(presenceEvent: HMPresenceEvent): _Foundation_NSPredicate
Swift declarationclass func predicateForEvaluatingTrigger(withPresence presenceEvent: HMPresenceEvent) -> NSPredicate
method · iOS 9.0+ · Deprecated in iOS 11.0addEvent
TypeScriptaddEvent(event: HMEvent, completion: ((arg0: (NativeError) | null) => void)): void
Swift declarationfunc addEvent(_ event: HMEvent, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)
init · iOS 11.0+init
TypeScriptstatic initNameEventsEndRecurrencesPredicate(name: string, events: Array<HMEvent>, endEvents?: (Array<HMEvent>) | null, recurrences?: (Array<_Foundation_DateComponents>) | null, predicate?: (_Foundation_NSPredicate) | null): HMEventTrigger
Swift declarationinit(name: String, events: [HMEvent], end endEvents: [HMEvent]?, recurrences: [DateComponents]?, predicate: NSPredicate?)
init · iOS 9.0+init
TypeScriptstatic initNameEventsPredicate(name: string, events: Array<HMEvent>, predicate?: (_Foundation_NSPredicate) | null): HMEventTrigger
Swift declarationinit(name: String, events: [HMEvent], predicate: NSPredicate?)
method · iOS 9.0+ · Deprecated in iOS 11.0removeEvent
TypeScriptremoveEvent(event: HMEvent, completion: ((arg0: (NativeError) | null) => void)): void
Swift declarationfunc removeEvent(_ event: HMEvent, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)
method · iOS 11.0+updateEndEvents
TypeScriptupdateEndEvents(endEvents: Array<HMEvent>, completion: ((arg0: (NativeError) | null) => void)): void
Swift declarationfunc updateEndEvents(_ endEvents: [HMEvent]) async throws
method · iOS 11.0+updateEvents
TypeScriptupdateEvents(events: Array<HMEvent>, completion: ((arg0: (NativeError) | null) => void)): void
Swift declarationfunc updateEvents(_ events: [HMEvent]) async throws
method · iOS 11.0+updateExecuteOnce
TypeScriptupdateExecuteOnce(executeOnce: boolean, completion: ((arg0: (NativeError) | null) => void)): void
Swift declarationfunc updateExecuteOnce(_ executeOnce: Bool) async throws
method · iOS 9.0+updatePredicate
TypeScriptupdatePredicate(predicate: (_Foundation_NSPredicate) | null, completion: ((arg0: (NativeError) | null) => void)): void
Swift declarationfunc updatePredicate(_ predicate: NSPredicate?) async throws
method · iOS 11.0+updateRecurrences
TypeScriptupdateRecurrences(recurrences: (Array<_Foundation_DateComponents>) | null, completion: ((arg0: (NativeError) | null) => void)): void
Swift declarationfunc updateRecurrences(_ recurrences: [DateComponents]?) async throws
get · iOS 11.0+endEvents
TypeScriptget endEvents(): Array<HMEvent>
Swift declarationvar endEvents: [HMEvent] { get }
get · iOS 9.0+events
TypeScriptget events(): Array<HMEvent>
Swift declarationvar events: [HMEvent] { get }
get · iOS 11.0+executeOnce
TypeScriptget executeOnce(): boolean
Swift declarationvar executeOnce: Bool { get }
get · iOS 9.0+predicate
TypeScriptget predicate(): (_Foundation_NSPredicate) | null
Swift declaration@NSCopying var predicate: NSPredicate? { get }
get · iOS 11.0+recurrences
TypeScriptget recurrences(): (Array<_Foundation_DateComponents>) | null
Swift declarationvar recurrences: [DateComponents]? { get }
get · iOS 11.0+triggerActivationState
TypeScriptget triggerActivationState(): HMEventTriggerActivationState
Swift declarationvar triggerActivationState: HMEventTriggerActivationState { get }
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
HMEventTrigger.init()
inherited init: cannot prove legal (class declares 3 custom initializers)
All HomeKit types →