public class HKQuery extends NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
HKQuery(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static HKQuery |
alloc() |
static HKQuery |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
static long |
hash_static() |
HKQuery |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static HKQuery |
new_objc() |
HKObjectType |
objectType() |
NSPredicate |
predicate() |
static NSPredicate |
predicateForActivitySummariesBetweenStartDateComponentsEndDateComponents(NSDateComponents startDateComponents,
NSDateComponents endDateComponents)
predicateForActivitySummariesBetweenStartDateComponents:endDateComponents:
|
static NSPredicate |
predicateForActivitySummaryWithDateComponents(NSDateComponents dateComponents)
predicateForActivitySummaryWithDateComponents:
|
static NSPredicate |
predicateForCategorySamplesWithOperatorTypeValue(long operatorType,
long value)
predicateForCategorySamplesWithOperatorType:value:
|
static NSPredicate |
predicateForClinicalRecordsFromSourceFHIRResourceTypeIdentifier(HKSource source,
java.lang.String resourceType,
java.lang.String identifier)
predicateForClinicalRecordsFromSource:withFHIRResourceType:identifier:
|
static NSPredicate |
predicateForClinicalRecordsWithFHIRResourceType(java.lang.String resourceType)
predicateForClinicalRecordsWithFHIRResourceType:
|
static NSPredicate |
predicateForElectrocardiogramsWithClassification(long classification)
predicateForElectrocardiogramsWithClassification:
|
static NSPredicate |
predicateForElectrocardiogramsWithSymptomsStatus(long symptomsStatus)
predicateForElectrocardiogramsWithSymptomsStatus:
|
static NSPredicate |
predicateForObjectsAssociatedWithElectrocardiogram(HKElectrocardiogram electrocardiogram)
predicateForObjectsAssociatedWithElectrocardiogram:
|
static NSPredicate |
predicateForObjectsFromDevices(NSSet<? extends HKDevice> devices)
predicateForObjectsFromDevices:
|
static NSPredicate |
predicateForObjectsFromSource(HKSource source)
predicateForObjectsFromSource:
|
static NSPredicate |
predicateForObjectsFromSourceRevisions(NSSet<? extends HKSourceRevision> sourceRevisions)
predicateForObjectsFromSourceRevisions:
|
static NSPredicate |
predicateForObjectsFromSources(NSSet<? extends HKSource> sources)
predicateForObjectsFromSources:
|
static NSPredicate |
predicateForObjectsFromWorkout(HKWorkout workout)
predicateForObjectsFromWorkout:
|
static NSPredicate |
predicateForObjectsWithDevicePropertyAllowedValues(java.lang.String key,
NSSet<java.lang.String> allowedValues)
predicateForObjectsWithDeviceProperty:allowedValues:
|
static NSPredicate |
predicateForObjectsWithMetadataKey(java.lang.String key)
predicateForObjectsWithMetadataKey:
|
static NSPredicate |
predicateForObjectsWithMetadataKeyAllowedValues(java.lang.String key,
NSArray<?> allowedValues)
predicateForObjectsWithMetadataKey:allowedValues:
|
static NSPredicate |
predicateForObjectsWithMetadataKeyOperatorTypeValue(java.lang.String key,
long operatorType,
java.lang.Object value)
predicateForObjectsWithMetadataKey:operatorType:value:
|
static NSPredicate |
predicateForObjectsWithNoCorrelation()
predicateForObjectsNoCorrelation
|
static NSPredicate |
predicateForObjectsWithUUIDs(NSSet<? extends NSUUID> UUIDs)
predicateForObjectsWithUUIDs:
|
static NSPredicate |
predicateForObjectWithUUID(NSUUID UUID)
predicateForObjectWithUUID:
|
static NSPredicate |
predicateForQuantitySamplesWithOperatorTypeQuantity(long operatorType,
HKQuantity quantity)
predicateForQuantitySamplesWithOperatorType:quantity:
|
static NSPredicate |
predicateForSamplesWithStartDateEndDateOptions(NSDate startDate,
NSDate endDate,
long options)
predicateForSamplesWithStartDate:endDate:options:
|
static NSPredicate |
predicateForVerifiableClinicalRecordsWithRelevantDateWithinDateInterval(NSDateInterval dateInterval)
predicateForVerifiableClinicalRecordsWithRelevantDateWithinDateInterval:
|
static NSPredicate |
predicateForWorkoutsWithOperatorTypeDuration(long operatorType,
double duration)
predicateForWorkoutsWithOperatorType:duration:
|
static NSPredicate |
predicateForWorkoutsWithOperatorTypeTotalDistance(long operatorType,
HKQuantity totalDistance)
predicateForWorkoutsWithOperatorType:totalDistance:
|
static NSPredicate |
predicateForWorkoutsWithOperatorTypeTotalEnergyBurned(long operatorType,
HKQuantity totalEnergyBurned)
predicateForWorkoutsWithOperatorType:totalEnergyBurned:
|
static NSPredicate |
predicateForWorkoutsWithOperatorTypeTotalFlightsClimbed(long operatorType,
HKQuantity totalFlightsClimbed)
predicateForWorkoutsWithOperatorType:totalFlightsClimbed:
|
static NSPredicate |
predicateForWorkoutsWithOperatorTypeTotalSwimmingStrokeCount(long operatorType,
HKQuantity totalSwimmingStrokeCount)
predicateForWorkoutsWithOperatorType:totalSwimmingStrokeCount:
|
static NSPredicate |
predicateForWorkoutsWithWorkoutActivityType(long workoutActivityType)
predicateForWorkoutsWithWorkoutActivityType:
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
HKSampleType |
sampleType() |
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static HKQuery alloc()
public static HKQuery allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static HKQuery new_objc()
public static NSPredicate predicateForActivitySummariesBetweenStartDateComponentsEndDateComponents(NSDateComponents startDateComponents, NSDateComponents endDateComponents)
Creates a predicate for use with HKActivitySummaryQuery
Creates a query predicate that matches HKActivitySummaries that fall between the given date components.
startDateComponents - The date components that define the beginning of the range. These date components should contain
era, year, month, and day components in the gregorian calendar.endDateComponents - The date components that define the end of the range. These date components should contain era,
year, month, and day components in the gregorian calendar.public static NSPredicate predicateForActivitySummaryWithDateComponents(NSDateComponents dateComponents)
Creates a predicate for use with HKActivitySummaryQuery
Creates a query predicate that matches HKActivitySummaries with the given date components.
dateComponents - The date components of the activity summary. These date components should contain era, year, month,
and day components in the gregorian calendar.public static NSPredicate predicateForCategorySamplesWithOperatorTypeValue(long operatorType, long value)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches category samples with values that match the expression formed by the given operator and value.
operatorType - The operator type for the expression.value - The value that the sample's value is being compared to. It is the right hand side of the
expression.public static NSPredicate predicateForObjectWithUUID(NSUUID UUID)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches the object saved with a particular UUID.
UUID - The UUID of the object.public static NSPredicate predicateForObjectsFromDevices(NSSet<? extends HKDevice> devices)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches objects associated with any of the given devices. All properties of each HKDevice are considered in the query and must match exactly, including nil values. To perform searches based on specific device properties, use predicateForObjectsWithDeviceProperty:allowedValues:.
devices - The set of devices that generated data.public static NSPredicate predicateForObjectsFromSource(HKSource source)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches objects saved by a given source.
source - The source.public static NSPredicate predicateForObjectsFromSourceRevisions(NSSet<? extends HKSourceRevision> sourceRevisions)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches objects saved by any of the specified HKSourceRevisions.
sourceRevisions - The list of source revisions.public static NSPredicate predicateForObjectsFromSources(NSSet<? extends HKSource> sources)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches objects saved by any of the given sources.
sources - The list of sources.public static NSPredicate predicateForObjectsFromWorkout(HKWorkout workout)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches the objects that have been added to the given workout.
workout - The HKWorkout that the object was added to.public static NSPredicate predicateForObjectsWithDevicePropertyAllowedValues(java.lang.String key, NSSet<java.lang.String> allowedValues)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches objects associated with an HKDevice with the specified device property matching any value included in allowedValues. To query for samples with devices that match all the properties of an HKDevice, use predicateForObjectsFromDevices.
key - The device property key. (See HKDevice.h)allowedValues - The set of values for which the device property can match. An empty set will match all
devices whose property value is nil.public static NSPredicate predicateForObjectsWithMetadataKey(java.lang.String key)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches objects with metadata that contains a given key.
key - The metadata key.public static NSPredicate predicateForObjectsWithMetadataKeyAllowedValues(java.lang.String key, NSArray<?> allowedValues)
Creates a predicate for use with HKQuery subclasses
Creates a query predicate that matches objects with metadata containing a value the matches one of the given values for the given key.
key - The metadata key.allowedValues - The list of values that the metadata value can be equal to.public static NSPredicate predicateForObjectsWithMetadataKeyOperatorTypeValue(java.lang.String key, long operatorType, java.lang.Object value)
Creates a predicate for use with HKQuery subclasses
Creates a query predicate that matches objects with a value for a given metadata key matches the given operator type and value.
key - The metadata key.operatorType - The comparison operator type for the expression.value - The value to be compared against.public static NSPredicate predicateForObjectsWithNoCorrelation()
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches the objects that are not associated with an HKCorrelation.
public static NSPredicate predicateForObjectsWithUUIDs(NSSet<? extends NSUUID> UUIDs)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches the objects saved with one of the given UUIDs.
UUIDs - The set of NSUUIDs.public static NSPredicate predicateForQuantitySamplesWithOperatorTypeQuantity(long operatorType, HKQuantity quantity)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches quantity samples with values that match the expression formed by the given operator and quantity.
operatorType - The operator type for the expression.quantity - The quantity that the sample's quantity is being compared to. It is the right hand side
of the expression.public static NSPredicate predicateForSamplesWithStartDateEndDateOptions(NSDate startDate, NSDate endDate, long options)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches samples with a startDate and an endDate that lie inside of a given time interval.
startDate - The start date of the predicate's time interval.endDate - The end date of the predicate's time interval.options - The rules for how a sample's time interval overlaps with the predicate's time interval.public static NSPredicate predicateForWorkoutsWithOperatorTypeDuration(long operatorType, double duration)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches HKWorkouts by the given operator type and duration
operatorType - The operator type for the expression.duration - The value that the workout's duration is being compared to. It is the right hand side of the
expression.public static NSPredicate predicateForWorkoutsWithOperatorTypeTotalDistance(long operatorType, HKQuantity totalDistance)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches HKWorkouts by the given operator type and totalEnergyBurned
operatorType - The operator type for the expression.totalDistance - The value that the workout's totalEnergyBurned is being compared to. It is the right hand side of the
expression. The unit for this value should be of type Distance.public static NSPredicate predicateForWorkoutsWithOperatorTypeTotalEnergyBurned(long operatorType, HKQuantity totalEnergyBurned)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches HKWorkouts by the given operator type and totalEnergyBurned
operatorType - The operator type for the expression.totalEnergyBurned - The value that the workout's totalEnergyBurned is being compared to. It is the right hand side of the
expression. The unit for this value should be of type Energy.public static NSPredicate predicateForWorkoutsWithOperatorTypeTotalSwimmingStrokeCount(long operatorType, HKQuantity totalSwimmingStrokeCount)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches HKWorkouts by the given operator type and totalSwimmingStrokeCount
operatorType - The operator type for the expression.totalSwimmingStrokeCount - The value that the workout's totalSwimmingStrokeCount is being compared to.
It is the right hand side of the expression. The unit for this value should
be of type Count.public static NSPredicate predicateForWorkoutsWithWorkoutActivityType(long workoutActivityType)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches HKWorkouts with the given HKWorkoutActivityType.
workoutActivityType - The HKWorkoutActivity type of the workoutpublic static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public HKObjectType objectType()
public NSPredicate predicate()
public HKSampleType sampleType()
public static NSPredicate predicateForWorkoutsWithOperatorTypeTotalFlightsClimbed(long operatorType, HKQuantity totalFlightsClimbed)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches HKWorkouts by the given operator type and totalFlightsClimbed
operatorType - The operator type for the expression.totalFlightsClimbed - The value that the workout's totalFlightsClimbed is being compared to.
It is the right hand side of the expression. The unit for this value should
be of type Count.public static NSPredicate predicateForClinicalRecordsFromSourceFHIRResourceTypeIdentifier(HKSource source, java.lang.String resourceType, java.lang.String identifier)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches HKClinicalRecords for a given source, FHIR resource type, and FHIR identifier.
source - The source.resourceType - The FHIR resource type.identifier - The FHIR identifier.public static NSPredicate predicateForClinicalRecordsWithFHIRResourceType(java.lang.String resourceType)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches HKClinicalRecords with a specific FHIR resource type.
resourceType - The FHIR resource type.public static NSPredicate predicateForElectrocardiogramsWithClassification(long classification)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches HKElectrocardiograms with a specific classification.
classification - The classification for the electrocardiogram.public static NSPredicate predicateForElectrocardiogramsWithSymptomsStatus(long symptomsStatus)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches HKElectrocardiograms with a specificied symptoms status.
symptomsStatus - The symptoms status for the electrocardiogram.public static NSPredicate predicateForObjectsAssociatedWithElectrocardiogram(HKElectrocardiogram electrocardiogram)
Creates a predicate for use with HKQuery subclasses.
Creates a query predicate that matches the objects that have been added to the given electrocardiogram
electrocardiogram - The HKElectrocardiogram that the object was added to.public static NSPredicate predicateForVerifiableClinicalRecordsWithRelevantDateWithinDateInterval(NSDateInterval dateInterval)
Creates a predicate for use with HKQuery subclasses.
Creates a predicate that matches HKVerifiableClinicalRecords with a relevant date within a date interval.
dateInterval - The date interval that the record's relevant date is in.