public class HKQuantitySeriesSampleQuery extends HKQuery
An HKQuantitySeriesSampleQuery is used to access series data associated with HKQuantitySample(s).
Once instantiated, call -[HKHealthStore executeQuery:] to begin enumerating the series data. Call -[HKHealthStore stopQuery:] to discontinue further quantity data reporting.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HKQuantitySeriesSampleQuery.Block_initWithQuantityTypePredicateQuantityHandler |
static interface |
HKQuantitySeriesSampleQuery.Block_initWithSampleQuantityHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
HKQuantitySeriesSampleQuery(org.moe.natj.general.Pointer peer) |
objectType, predicate, sampleTypeaccessibilityActivate, 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, willChangeValuesAtIndexesForKeyprotected HKQuantitySeriesSampleQuery(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static HKQuantitySeriesSampleQuery alloc()
public static HKQuantitySeriesSampleQuery 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 boolean includeSample()
Include owning HKQuantitySample in quantityHandler handler.
Default value is NO. If includeSample is set then the quantitySample parameter of quantityHandler will be non-nil anytime the quantity parameter is non-nil. Specifying this option has a performance cost. This property may not be modified once the query has been executed.
public HKQuantitySeriesSampleQuery init()
public HKQuantitySeriesSampleQuery initWithQuantityTypePredicateQuantityHandler(HKQuantityType quantityType, NSPredicate predicate, HKQuantitySeriesSampleQuery.Block_initWithQuantityTypePredicateQuantityHandler quantityHandler)
Returns a query that will retrieve HKQuantity objects for samples of a specified type that match the specified predicate.
quantityType - The type of HKQuantitySample to retrieve.predicate - The predicate which the query results should match.
To query for the quantities for a specific quantity sample
see: +[HKPredicates predicateForObjectWithUUID:]quantityHandler - The block to invoke with results from the query. It will be
called repeatedly with HKQuantity, and NSDateInterval objects in
ascending dateInterval.startDate order, until all quantities are
returned and the done parameter is YES
or -[HKHealthStore stopQuery:] is called.
The quantitySample parameter is nil unless includeSample is YES,
in which case it will be the quantitySample which owns the current
quantity anytime the quantity paramater is non-nil.
The stopQuery call can be made within the quantityHandler block.
Once done is YES, or stopQuery has been called, the query is
complete and no more calls to quantityHandler will be made.public HKQuantitySeriesSampleQuery initWithSampleQuantityHandler(HKQuantitySample quantitySample, HKQuantitySeriesSampleQuery.Block_initWithSampleQuantityHandler quantityHandler)
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 HKQuantitySeriesSampleQuery new_objc()
public boolean orderByQuantitySampleStartDate()
Order enumerated results first by quantitySample.startDate, then by the quantity's dateInterval.startDate.
Default value is NO. All quantities owned by a given quantitySample will be enumerated before any quantities owned by any other quantity sample, and the quantity samples will be enumerated in their startDate order. Note that individual quantities may not be returned in their dateInterval.startDate order if more than one quantitySample overlap in time. This property may not be modified once the query has been executed.
public static NSPredicate predicateForActivitySummariesBetweenStartDateComponentsEndDateComponents(NSDateComponents startDateComponents, NSDateComponents endDateComponents)
public static NSPredicate predicateForActivitySummaryWithDateComponents(NSDateComponents dateComponents)
public static NSPredicate predicateForCategorySamplesWithOperatorTypeValue(long operatorType, long value)
public static NSPredicate predicateForClinicalRecordsFromSourceFHIRResourceTypeIdentifier(HKSource source, java.lang.String resourceType, java.lang.String identifier)
public static NSPredicate predicateForClinicalRecordsWithFHIRResourceType(java.lang.String resourceType)
public static NSPredicate predicateForObjectWithUUID(NSUUID UUID)
public static NSPredicate predicateForObjectsFromDevices(NSSet<? extends HKDevice> devices)
public static NSPredicate predicateForObjectsFromSource(HKSource source)
public static NSPredicate predicateForObjectsFromSourceRevisions(NSSet<? extends HKSourceRevision> sourceRevisions)
public static NSPredicate predicateForObjectsFromSources(NSSet<? extends HKSource> sources)
public static NSPredicate predicateForObjectsFromWorkout(HKWorkout workout)
public static NSPredicate predicateForObjectsWithDevicePropertyAllowedValues(java.lang.String key, NSSet<java.lang.String> allowedValues)
public static NSPredicate predicateForObjectsWithMetadataKey(java.lang.String key)
public static NSPredicate predicateForObjectsWithMetadataKeyAllowedValues(java.lang.String key, NSArray<?> allowedValues)
public static NSPredicate predicateForObjectsWithMetadataKeyOperatorTypeValue(java.lang.String key, long operatorType, java.lang.Object value)
public static NSPredicate predicateForObjectsWithNoCorrelation()
public static NSPredicate predicateForObjectsWithUUIDs(NSSet<? extends NSUUID> UUIDs)
public static NSPredicate predicateForQuantitySamplesWithOperatorTypeQuantity(long operatorType, HKQuantity quantity)
public static NSPredicate predicateForSamplesWithStartDateEndDateOptions(NSDate startDate, NSDate endDate, long options)
public static NSPredicate predicateForWorkoutsWithOperatorTypeDuration(long operatorType, double duration)
public static NSPredicate predicateForWorkoutsWithOperatorTypeTotalDistance(long operatorType, HKQuantity totalDistance)
public static NSPredicate predicateForWorkoutsWithOperatorTypeTotalEnergyBurned(long operatorType, HKQuantity totalEnergyBurned)
public static NSPredicate predicateForWorkoutsWithOperatorTypeTotalFlightsClimbed(long operatorType, HKQuantity totalFlightsClimbed)
public static NSPredicate predicateForWorkoutsWithOperatorTypeTotalSwimmingStrokeCount(long operatorType, HKQuantity totalSwimmingStrokeCount)
public static NSPredicate predicateForWorkoutsWithWorkoutActivityType(long workoutActivityType)
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void setIncludeSample(boolean value)
Include owning HKQuantitySample in quantityHandler handler.
Default value is NO. If includeSample is set then the quantitySample parameter of quantityHandler will be non-nil anytime the quantity parameter is non-nil. Specifying this option has a performance cost. This property may not be modified once the query has been executed.
public void setOrderByQuantitySampleStartDate(boolean value)
Order enumerated results first by quantitySample.startDate, then by the quantity's dateInterval.startDate.
Default value is NO. All quantities owned by a given quantitySample will be enumerated before any quantities owned by any other quantity sample, and the quantity samples will be enumerated in their startDate order. Note that individual quantities may not be returned in their dateInterval.startDate order if more than one quantitySample overlap in time. This property may not be modified once the query has been executed.
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public static NSPredicate predicateForElectrocardiogramsWithClassification(long classification)
public static NSPredicate predicateForElectrocardiogramsWithSymptomsStatus(long symptomsStatus)
public static NSPredicate predicateForObjectsAssociatedWithElectrocardiogram(HKElectrocardiogram electrocardiogram)
public static NSPredicate predicateForVerifiableClinicalRecordsWithRelevantDateWithinDateInterval(NSDateInterval dateInterval)