HMEventTrigger.CreatePredicateForEvaluatingTrigger Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
CreatePredicateForEvaluatingTrigger(HMCharacteristic, NSPredicateOperatorType, NSObject) |
Método de fábrica para crear un NSPredicate objeto que evalúa el |
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