Type Method

predicateForEvaluatingTriggerOccurringBetweenDateWithComponents:secondDateWithComponents:

Creates a predicate that evaluates whether the event occurred between the specified times.

Declaration

+ (NSPredicate *)predicateForEvaluatingTriggerOccurringBetweenDateWithComponents:(NSDateComponents *)firstDateComponents secondDateWithComponents:(NSDateComponents *)secondDateWithComponents;

Parameters

firstDateComponents

Date components that represent the first time boundary to compare to the execution time.

secondDateComponents

Date components that represent the second time boundary to compare to the execution time.

Return Value

A predicate object that represents a condition to evaluate before executing the scene.

See Also

Creating Predicates

+ predicateForEvaluatingTriggerOccurringBeforeSignificantEvent:

Creates a predicate that evaluates whether the event occurred before a significant event.

+ predicateForEvaluatingTriggerOccurringAfterSignificantEvent:

Creates a predicate that evaluates whether the event occurred after a significant event.

+ predicateForEvaluatingTriggerOccurringBetweenSignificantEvent:secondSignificantEvent:

Creates a predicate that evaluates whether the event occurred between two significant events.

+ predicateForEvaluatingTriggerOccurringBeforeDateWithComponents:

Creates a predicate that evaluates whether the event occurred before the specified time.

+ predicateForEvaluatingTriggerOccurringOnDateWithComponents:

Creates a predicate that evaluates whether the event occurred at the specified time.

+ predicateForEvaluatingTriggerOccurringAfterDateWithComponents:

Creates a predicate that evaluates whether the event occurred at or after the specified time.

+ predicateForEvaluatingTriggerWithCharacteristic:relatedBy:toValue:

Creates a predicate that evaluates whether a characteristic value relates to the specified value.

+ predicateForEvaluatingTriggerWithPresence:

Creates a predicate that evaluates the current user presence against that specified in the presence event.

HMCharacteristicKeyPath

Specifies the key path for a characteristic in an NSPredicate.

HMCharacteristicValueKeyPath

Specifies the key path for a characteristic value in an NSPredicate.

HMPresenceKeyPath

Specifies the key path for a presence event in an NSPredicate.