predicateForEvaluatingTrigger(withPresence:)
Creates a predicate that evaluates the current user presence against that specified in the presence event.
Declaration
class func predicateForEvaluatingTrigger(withPresence presenceEvent: HMPresenceEvent) -> NSPredicateParameters
- presenceEvent:
The Hmpresenceevent to evaluate as part of the predicate.
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(occurringBefore:)predicateForEvaluatingTrigger(occurringOn:)predicateForEvaluatingTrigger(occurringAfter:)predicateForEvaluatingTriggerOccurringBetweenDate(with:secondDateWith:)predicateForEvaluatingTrigger(_:relatedBy:toValue:)HMCharacteristicKeyPathHMCharacteristicValueKeyPathHMPresenceKeyPath