Compartir a través de


HMEventTrigger.CreatePredicateForEvaluatingTrigger Método

Definición

Sobrecargas

CreatePredicateForEvaluatingTrigger(HMCharacteristic, NSPredicateOperatorType, NSObject)

Método de fábrica para crear un NSPredicate objeto que evalúa el characteristic objeto con mediante value .operatorType

CreatePredicateForEvaluatingTrigger(HMPresenceEvent)

CreatePredicateForEvaluatingTrigger(HMCharacteristic, NSPredicateOperatorType, NSObject)

Método de fábrica para crear un NSPredicate objeto que evalúa el characteristic objeto con mediante value .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

Parámetros

characteristic
HMCharacteristic

que HMCharacteristic se va a supervisar.

operatorType
NSPredicateOperatorType

NSPredicateOperatorType utilizado para comparar con characteristic .value

value
NSObject

Valor que se va a comparar con .characteristic

Devoluciones

Atributos

Se aplica a

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

Parámetros

presenceEvent
HMPresenceEvent

Devoluciones

Atributos

Se aplica a