Compartilhar via


HMEventTrigger.CreatePredicateForEvaluatingTrigger Método

Definição

Sobrecargas

CreatePredicateForEvaluatingTrigger(HMCharacteristic, NSPredicateOperatorType, NSObject)

Método factory para criar um NSPredicate que avalia o characteristic em relação ao value usando o operatorType.

CreatePredicateForEvaluatingTrigger(HMPresenceEvent)

CreatePredicateForEvaluatingTrigger(HMCharacteristic, NSPredicateOperatorType, NSObject)

Método factory para criar um NSPredicate que avalia o characteristic em relação ao value usando o 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

O HMCharacteristic a ser monitorado.

operatorType
NSPredicateOperatorType

O NSPredicateOperatorType usado para comparar o characteristic com o value.

value
NSObject

O valor a ser comparado com o characteristic.

Retornos

Atributos

Aplica-se 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

Retornos

Atributos

Aplica-se a