Package org.robovm.apple.healthkit
Class HKQuery
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.healthkit.HKQuery
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
HKActivitySummaryQuery
,HKAnchoredObjectQuery
,HKCorrelationQuery
,HKDocumentQuery
,HKObserverQuery
,HKQuantitySeriesSampleQuery
,HKSampleQuery
,HKSourceQuery
,HKStatisticsCollectionQuery
,HKStatisticsQuery
,HKWorkoutRouteQuery
public class HKQuery extends NSObject
- Since:
- Available in iOS 8.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HKQuery.HKQueryPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HKQuery()
protected
HKQuery(NSObject.Handle h, long handle)
protected
HKQuery(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
HKQuery
protected HKQuery()
-
HKQuery
protected HKQuery(NSObject.Handle h, long handle)
-
HKQuery
protected HKQuery(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getObjectType
public HKObjectType getObjectType()
- Since:
- Available in iOS 9.3 and later.
-
getSampleType
@Deprecated public HKSampleType getSampleType()
Deprecated.Deprecated in iOS 9.3.- Since:
- Available in iOS 8.0 and later.
-
getPredicate
public NSPredicate getPredicate()
-
createPredicateForObjectsWithMetadata
public static NSPredicate createPredicateForObjectsWithMetadata(java.lang.String key)
-
createPredicateForObjectsWithMetadata
public static NSPredicate createPredicateForObjectsWithMetadata(java.lang.String key, NSArray<?> allowedValues)
-
createPredicateForObjectsWithMetadata
public static NSPredicate createPredicateForObjectsWithMetadata(java.lang.String key, NSPredicateOperatorType operatorType, NSObject value)
-
createPredicateForObjectsFromSource
public static NSPredicate createPredicateForObjectsFromSource(HKSource source)
-
createPredicateForObjectsFromSources
public static NSPredicate createPredicateForObjectsFromSources(NSSet<HKSource> sources)
-
predicateForObjectsFromSourceRevisions
public static NSPredicate predicateForObjectsFromSourceRevisions(NSSet<HKSourceRevision> sourceRevisions)
- Since:
- Available in iOS 9.0 and later.
-
predicateForObjectsFromDevices
public static NSPredicate predicateForObjectsFromDevices(NSSet<HKDevice> devices)
- Since:
- Available in iOS 9.0 and later.
-
predicateForObjectsWithDeviceProperty
public static NSPredicate predicateForObjectsWithDeviceProperty(java.lang.String key, NSSet<NSString> allowedValues)
- Since:
- Available in iOS 9.0 and later.
-
createPredicateForObjectsWithUUID
public static NSPredicate createPredicateForObjectsWithUUID(NSUUID uuid)
-
createPredicateForObjectsWithUUIDs
public static NSPredicate createPredicateForObjectsWithUUIDs(NSSet<NSUUID> uuids)
-
createPredicateForObjectsWithNoCorrelation
public static NSPredicate createPredicateForObjectsWithNoCorrelation()
-
createPredicateForObjectsFromWorkout
public static NSPredicate createPredicateForObjectsFromWorkout(HKWorkout workout)
-
createPredicateForSamplesWithDate
public static NSPredicate createPredicateForSamplesWithDate(NSDate startDate, NSDate endDate, HKQueryOptions options)
-
createPredicateForQuantitySamplesWithQuantity
public static NSPredicate createPredicateForQuantitySamplesWithQuantity(NSPredicateOperatorType operatorType, HKQuantity quantity)
-
createPredicateForCategorySamplesWithValue
public static NSPredicate createPredicateForCategorySamplesWithValue(NSPredicateOperatorType operatorType, long value)
-
createPredicateForWorkoutsWithActivityType
public static NSPredicate createPredicateForWorkoutsWithActivityType(HKWorkoutActivityType workoutActivityType)
-
createPredicateForWorkoutsWithDuration
public static NSPredicate createPredicateForWorkoutsWithDuration(NSPredicateOperatorType operatorType, double duration)
-
createPredicateForWorkoutsWithTotalEnergyBurned
public static NSPredicate createPredicateForWorkoutsWithTotalEnergyBurned(NSPredicateOperatorType operatorType, HKQuantity totalEnergyBurned)
-
createPredicateForWorkoutsWithTotalDistance
public static NSPredicate createPredicateForWorkoutsWithTotalDistance(NSPredicateOperatorType operatorType, HKQuantity totalDistance)
-
createPredicateForWorkoutsWithTotalSwimmingStrokeCount
public static NSPredicate createPredicateForWorkoutsWithTotalSwimmingStrokeCount(NSPredicateOperatorType operatorType, HKQuantity totalSwimmingStrokeCount)
-
createPredicateForWorkouts
public static NSPredicate createPredicateForWorkouts(NSPredicateOperatorType operatorType, HKQuantity totalFlightsClimbed)
- Since:
- Available in iOS 11.0 and later.
-
createPredicateForActivitySummary
public static NSPredicate createPredicateForActivitySummary(NSDateComponents dateComponents)
- Since:
- Available in iOS 9.3 and later.
-
createPredicateForActivitySummariesBetweenDates
public static NSPredicate createPredicateForActivitySummariesBetweenDates(NSDateComponents startDateComponents, NSDateComponents endDateComponents)
- Since:
- Available in iOS 9.3 and later.
-
createPredicateForClinicalRecords
public static NSPredicate createPredicateForClinicalRecords(HKFHIRResourceType resourceType)
- Since:
- Available in iOS 12.0 and later.
-
createPredicateForClinicalRecords
public static NSPredicate createPredicateForClinicalRecords(HKSource source, HKFHIRResourceType resourceType, java.lang.String identifier)
- Since:
- Available in iOS 12.0 and later.
-
-