다음을 통해 공유


HMEventTrigger.CreatePredicateForEvaluatingTrigger 메서드

정의

오버로드

CreatePredicateForEvaluatingTrigger(HMCharacteristic, NSPredicateOperatorType, NSObject)

팩터리 메서드는 를 사용하여 에 대해 value 를 평가하는 characteristic 을 만듭니 NSPredicateoperatorType.

CreatePredicateForEvaluatingTrigger(HMPresenceEvent)

CreatePredicateForEvaluatingTrigger(HMCharacteristic, NSPredicateOperatorType, NSObject)

팩터리 메서드는 를 사용하여 에 대해 value 를 평가하는 characteristic 을 만듭니 NSPredicateoperatorType.

[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

반환

특성

적용 대상