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

A way to create simple NSPredicates. More...

Detailed Description

NSPredicate (https://developer.apple.com/documentation/foundation/nspredicate) is a definition of logical conditions used to constrain a search either for a fetch or for in-memory filtering.

Public Attributes

string formatString
 The predicate's format string.
 
string key
 The predicate's key string (K in the format string)
 
System.Object value
 The predicate's value string (%@ in the format string)
 

Public Member Functions

 Predicate (string format)
 Construct a Predicate with a format string.
 
 Predicate (string format, string key)
 Construct a Predicate with a format string.
 
 Predicate (string format, string key, System.Object value)
 Construct a Predicate with a format string.
 
virtual XElement ToXML ()
 generates XML Element to convert the Predicate to an NSPredicate on the Obj-C side.
 
string ToXMLString ()
 generates an XML string, to convert the Predicate to an NSPredicate on the Obj-C side.
 

Constructor & Destructor Documentation

◆ Predicate() [1/3]

BeliefEngine.HealthKit.Predicate.Predicate ( string format)
inline
Parameters
formatthe format string to use.

◆ Predicate() [2/3]

BeliefEngine.HealthKit.Predicate.Predicate ( string format,
string key )
inline
Parameters
formatthe format string to use.
keythe predicate's key string (K in the format string)

◆ Predicate() [3/3]

BeliefEngine.HealthKit.Predicate.Predicate ( string format,
string key,
System::Object value )
inline
Parameters
formatthe format string to use.
keythe predicate's key string (K in the format string)
valuethe predicate's value string (%@ in the format string)

Member Function Documentation

◆ ToXML()

virtual XElement BeliefEngine.HealthKit.Predicate.ToXML ( )
inlinevirtual