BEHealthKit 1.11
A HealthKit plugin for Unity
Loading...
Searching...
No Matches
Public Attributes | Public Member Functions | List of all members
BeliefEngine.HealthKit.CompoundPredicate Class Reference

A way to create NSCompoundPredicates. More...

Detailed Description

NSCompoundPredicate (https://developer.apple.com/documentation/foundation/nscompoundpredicate) combines multiple subPredicates using AND, NOT, or OR.

Public Attributes

CompoundPredicateType predicateType
 The logical type of compound Predicate.
 
List< PredicatesubPredicates
 The compound Predicate's subpredicates.
 
- Public Attributes inherited from BeliefEngine.HealthKit.Predicate
string formatString
 The predicate's format string.
 

Public Member Functions

 CompoundPredicate (CompoundPredicateType predicateType, List< Predicate > subPredicates)
 Construct a Predicate with a logical type, and list of subpredicates.
 
override XElement ToXML ()
 generates XML Element to convert the Predicate to an NSPredicate on the Obj-C side.
 
- Public Member Functions inherited from BeliefEngine.HealthKit.Predicate
 Predicate (string format)
 Construct a Predicate with a format string.
 
string ToXMLString ()
 generates an XML string, to convert the Predicate to an NSPredicate on the Obj-C side.
 

Constructor & Destructor Documentation

◆ CompoundPredicate()

BeliefEngine.HealthKit.CompoundPredicate.CompoundPredicate ( CompoundPredicateType predicateType,
List< Predicate > subPredicates )
inline
Parameters
predicateTypethe logical operator used to combine the subpredicates
subPredicatesa list of predicates to combine

Member Function Documentation

◆ ToXML()

override XElement BeliefEngine.HealthKit.CompoundPredicate.ToXML ( )
inlinevirtual

Reimplemented from BeliefEngine.HealthKit.Predicate.