HMEventTrigger.CreatePredicateForEvaluatingTrigger 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreatePredicateForEvaluatingTrigger(HMCharacteristic, NSPredicateOperatorType, NSObject) |
工厂方法,用于创建一个 NSPredicate ,该方法使用 |
CreatePredicateForEvaluatingTrigger(HMPresenceEvent) |
CreatePredicateForEvaluatingTrigger(HMCharacteristic, NSPredicateOperatorType, NSObject)
工厂方法,用于创建一个 NSPredicate ,该方法使用 operatorType
针对 计算 characteristic
value
。
[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用于将 与 进行比较characteristic
的 value
。
- 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
返回
- 属性