Freigeben über


HMEventTrigger.CreatePredicateForEvaluatingTrigger Methode

Definition

Überlädt

CreatePredicateForEvaluatingTrigger(HMCharacteristic, NSPredicateOperatorType, NSObject)

Factory-Methode, um eine NSPredicate zu erstellen, die das characteristic mit operatorTypedem value auswertet.

CreatePredicateForEvaluatingTrigger(HMPresenceEvent)

CreatePredicateForEvaluatingTrigger(HMCharacteristic, NSPredicateOperatorType, NSObject)

Factory-Methode, um eine NSPredicate zu erstellen, die das characteristic mit operatorTypedem value auswertet.

[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

Parameter

characteristic
HMCharacteristic

Die HMCharacteristic zu überwachende.

operatorType
NSPredicateOperatorType

Die NSPredicateOperatorType , die verwendet wird, um mit zu characteristicvaluevergleichen.

value
NSObject

Der Wert, der characteristicmit verglichen werden soll.

Gibt zurück

Attribute

Gilt für:

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

Parameter

presenceEvent
HMPresenceEvent

Gibt zurück

Attribute

Gilt für: