predicateForEvaluatingTrigger(occurringBefore:)
Creates a predicate that evaluates whether the event occurred before the specified time.
Declaration
class func predicateForEvaluatingTrigger(occurringBefore dateComponents: DateComponents) -> NSPredicateParameters
- dateComponents:
Date components that represent the time to compare with the time that the event occurred.
Return Value
A predicate object that represents a condition to evaluate before executing the scene.
See Also
Creating predicates
predicateForEvaluatingTriggerOccurring(beforeSignificantEvent:)predicateForEvaluatingTriggerOccurring(afterSignificantEvent:)predicate(forEvaluatingTriggerOccurringBetweenSignificantEvent:secondSignificantEvent:)predicateForEvaluatingTrigger(occurringOn:)predicateForEvaluatingTrigger(occurringAfter:)predicateForEvaluatingTriggerOccurringBetweenDate(with:secondDateWith:)predicateForEvaluatingTrigger(_:relatedBy:toValue:)predicateForEvaluatingTrigger(withPresence:)HMCharacteristicKeyPathHMCharacteristicValueKeyPathHMPresenceKeyPath