Bagikan melalui


HMEventTrigger.CreatePredicateForEvaluatingTrigger Metode

Definisi

Overload

CreatePredicateForEvaluatingTrigger(HMCharacteristic, NSPredicateOperatorType, NSObject)

Metode pabrik untuk membuat NSPredicate yang mengevaluasi characteristic terhadap value penggunaan operatorType.

CreatePredicateForEvaluatingTrigger(HMPresenceEvent)

CreatePredicateForEvaluatingTrigger(HMCharacteristic, NSPredicateOperatorType, NSObject)

Metode pabrik untuk membuat NSPredicate yang mengevaluasi characteristic terhadap value penggunaan 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

Parameter

characteristic
HMCharacteristic

yang HMCharacteristic akan dipantau.

operatorType
NSPredicateOperatorType

yang NSPredicateOperatorType digunakan untuk membandingkan characteristic dengan value.

value
NSObject

Nilai yang akan dibandingkan dengan characteristic.

Mengembalikan

Atribut

Berlaku untuk

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

Mengembalikan

Atribut

Berlaku untuk