HMEventTrigger.CreatePredicateForEvaluatingTrigger Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreatePredicateForEvaluatingTrigger(HMCharacteristic, NSPredicateOperatorType, NSObject) |
Factory method to create an NSPredicate that evaluates the |
CreatePredicateForEvaluatingTrigger(HMPresenceEvent) |
CreatePredicateForEvaluatingTrigger(HMCharacteristic, NSPredicateOperatorType, NSObject)
Factory method to create an NSPredicate that evaluates the characteristic
against the value
using the operatorType
.
[Foundation.Export("predicateForEvaluatingTriggerWithCharacteristic:relatedBy:toValue:")]
public static Foundation.NSPredicate CreatePredicateForEvaluatingTrigger (HomeKit.HMCharacteristic characteristic, Foundation.NSPredicateOperatorType operatorType, Foundation.NSObject value);
static member CreatePredicateForEvaluatingTrigger : HomeKit.HMCharacteristic * Foundation.NSPredicateOperatorType * Foundation.NSObject -> Foundation.NSPredicate
Parameters
- characteristic
- HMCharacteristic
The HMCharacteristic to be monitored.
- operatorType
- NSPredicateOperatorType
The NSPredicateOperatorType used to compare the characteristic
with the value
.
- value
- NSObject
The value to be compared with the characteristic
.
Returns
- Attributes
Applies to
CreatePredicateForEvaluatingTrigger(HMPresenceEvent)
[Foundation.Export("predicateForEvaluatingTriggerWithPresence:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static Foundation.NSPredicate CreatePredicateForEvaluatingTrigger (HomeKit.HMPresenceEvent presenceEvent);
static member CreatePredicateForEvaluatingTrigger : HomeKit.HMPresenceEvent -> Foundation.NSPredicate
Parameters
- presenceEvent
- HMPresenceEvent
Returns
- Attributes