HMEventTrigger.CreatePredicateForEvaluatingTrigger 方法

定义

重载

CreatePredicateForEvaluatingTrigger(HMCharacteristic, NSPredicateOperatorType, NSObject)

工厂方法,用于创建一个 NSPredicate ,该方法使用 operatorType针对 计算 characteristicvalue

CreatePredicateForEvaluatingTrigger(HMPresenceEvent)

CreatePredicateForEvaluatingTrigger(HMCharacteristic, NSPredicateOperatorType, NSObject)

工厂方法,用于创建一个 NSPredicate ,该方法使用 operatorType针对 计算 characteristicvalue

[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

参数

characteristic
HMCharacteristic

HMCharacteristic 监视的 。

operatorType
NSPredicateOperatorType

NSPredicateOperatorType用于将 与 进行比较characteristicvalue

value
NSObject

要与 进行比较的值 characteristic

返回

属性

适用于

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

参数

presenceEvent
HMPresenceEvent

返回

属性

适用于