Package apple.healthkit
Class HKQuery
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.healthkit.HKQuery
-
- All Implemented Interfaces:
NSObject
- Direct Known Subclasses:
HKActivitySummaryQuery,HKAnchoredObjectQuery,HKCorrelationQuery,HKDocumentQuery,HKElectrocardiogramQuery,HKHeartbeatSeriesQuery,HKObserverQuery,HKQuantitySeriesSampleQuery,HKSampleQuery,HKSourceQuery,HKStatisticsCollectionQuery,HKStatisticsQuery,HKVerifiableClinicalRecordQuery,HKWorkoutRouteQuery
public class HKQuery extends NSObject
API-Since: 8.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHKQuery(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static HKQueryalloc()static HKQueryallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()static longhash_static()HKQueryinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)static HKQuerynew_objc()@Nullable HKObjectTypeobjectType()API-Since: 9.3@Nullable NSPredicatepredicate()static @NotNull NSPredicatepredicateForActivitySummariesBetweenStartDateComponentsEndDateComponents(@NotNull NSDateComponents startDateComponents, @NotNull NSDateComponents endDateComponents)predicateForActivitySummariesBetweenStartDateComponents:endDateComponents: Creates a predicate for use with HKActivitySummaryQuery Creates a query predicate that matches HKActivitySummaries that fall between the given date components.static @NotNull NSPredicatepredicateForActivitySummaryWithDateComponents(@NotNull NSDateComponents dateComponents)predicateForActivitySummaryWithDateComponents: Creates a predicate for use with HKActivitySummaryQuery Creates a query predicate that matches HKActivitySummaries with the given date components.static @NotNull NSPredicatepredicateForCategorySamplesEqualToValues(@NotNull NSSet<? extends NSNumber> values)predicateForCategorySamplesEqualToValues: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForCategorySamplesWithOperatorTypeValue(long operatorType, long value)static @NotNull NSPredicatepredicateForClinicalRecordsFromSourceFHIRResourceTypeIdentifier(@NotNull HKSource source, @NotNull java.lang.String resourceType, @NotNull java.lang.String identifier)predicateForClinicalRecordsFromSource:withFHIRResourceType:identifier: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForClinicalRecordsWithFHIRResourceType(@NotNull java.lang.String resourceType)predicateForClinicalRecordsWithFHIRResourceType: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForElectrocardiogramsWithClassification(long classification)predicateForElectrocardiogramsWithClassification: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForElectrocardiogramsWithSymptomsStatus(long symptomsStatus)predicateForElectrocardiogramsWithSymptomsStatus: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForObjectsAssociatedWithElectrocardiogram(@NotNull HKElectrocardiogram electrocardiogram)predicateForObjectsAssociatedWithElectrocardiogram: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForObjectsFromDevices(@NotNull NSSet<? extends HKDevice> devices)predicateForObjectsFromDevices: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForObjectsFromSource(@NotNull HKSource source)predicateForObjectsFromSource: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForObjectsFromSourceRevisions(@NotNull NSSet<? extends HKSourceRevision> sourceRevisions)predicateForObjectsFromSourceRevisions: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForObjectsFromSources(@NotNull NSSet<? extends HKSource> sources)predicateForObjectsFromSources: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForObjectsFromWorkout(@NotNull HKWorkout workout)predicateForObjectsFromWorkout: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForObjectsWithDevicePropertyAllowedValues(@NotNull java.lang.String key, @NotNull NSSet<java.lang.String> allowedValues)predicateForObjectsWithDeviceProperty:allowedValues: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForObjectsWithMetadataKey(@NotNull java.lang.String key)predicateForObjectsWithMetadataKey: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForObjectsWithMetadataKeyAllowedValues(@NotNull java.lang.String key, @NotNull NSArray<?> allowedValues)predicateForObjectsWithMetadataKey: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.static @NotNull NSPredicatepredicateForObjectsWithMetadataKeyOperatorTypeValue(@NotNull java.lang.String key, long operatorType, @NotNull java.lang.Object value)predicateForObjectsWithMetadataKey:operatorType: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.static @NotNull NSPredicatepredicateForObjectsWithNoCorrelation()predicateForObjectsNoCorrelation Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForObjectsWithUUIDs(@NotNull NSSet<? extends NSUUID> UUIDs)predicateForObjectsWithUUIDs: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForObjectWithUUID(@NotNull NSUUID UUID)predicateForObjectWithUUID: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForQuantitySamplesWithOperatorTypeQuantity(long operatorType, @NotNull HKQuantity quantity)predicateForQuantitySamplesWithOperatorType:quantity: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForSamplesWithStartDateEndDateOptions(@Nullable NSDate startDate, @Nullable NSDate endDate, long options)predicateForSamplesWithStartDate:endDate:options: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForVerifiableClinicalRecordsWithRelevantDateWithinDateInterval(@NotNull NSDateInterval dateInterval)predicateForVerifiableClinicalRecordsWithRelevantDateWithinDateInterval: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForWorkoutActivitiesWithOperatorTypeDuration(long operatorType, double duration)predicateForWorkoutActivitiesWithOperatorType:duration: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForWorkoutActivitiesWithOperatorTypeQuantityTypeAverageQuantity(long operatorType, @NotNull HKQuantityType quantityType, @NotNull HKQuantity averageQuantity)predicateForWorkoutActivitiesWithOperatorType:quantityType:averageQuantity: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForWorkoutActivitiesWithOperatorTypeQuantityTypeMaximumQuantity(long operatorType, @NotNull HKQuantityType quantityType, @NotNull HKQuantity maximumQuantity)predicateForWorkoutActivitiesWithOperatorType:quantityType:maximumQuantity: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForWorkoutActivitiesWithOperatorTypeQuantityTypeMinimumQuantity(long operatorType, @NotNull HKQuantityType quantityType, @NotNull HKQuantity minimumQuantity)predicateForWorkoutActivitiesWithOperatorType:quantityType:minimumQuantity: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForWorkoutActivitiesWithOperatorTypeQuantityTypeSumQuantity(long operatorType, @NotNull HKQuantityType quantityType, @NotNull HKQuantity sumQuantity)predicateForWorkoutActivitiesWithOperatorType:quantityType:sumQuantity: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForWorkoutActivitiesWithStartDateEndDateOptions(@Nullable NSDate startDate, @Nullable NSDate endDate, long options)predicateForWorkoutActivitiesWithStartDate:endDate:options: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForWorkoutActivitiesWithWorkoutActivityType(long workoutActivityType)predicateForWorkoutActivitiesWithWorkoutActivityType: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForWorkoutsWithActivityPredicate(@NotNull NSPredicate activityPredicate)predicateForWorkoutsWithActivityPredicate: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForWorkoutsWithOperatorTypeDuration(long operatorType, double duration)predicateForWorkoutsWithOperatorType:duration: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForWorkoutsWithOperatorTypeQuantityTypeAverageQuantity(long operatorType, @NotNull HKQuantityType quantityType, @NotNull HKQuantity averageQuantity)predicateForWorkoutsWithOperatorType:quantityType:averageQuantity: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForWorkoutsWithOperatorTypeQuantityTypeMaximumQuantity(long operatorType, @NotNull HKQuantityType quantityType, @NotNull HKQuantity maximumQuantity)predicateForWorkoutsWithOperatorType:quantityType:maximumQuantity: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForWorkoutsWithOperatorTypeQuantityTypeMinimumQuantity(long operatorType, @NotNull HKQuantityType quantityType, @NotNull HKQuantity minimumQuantity)predicateForWorkoutsWithOperatorType:quantityType:minimumQuantity: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForWorkoutsWithOperatorTypeQuantityTypeSumQuantity(long operatorType, @NotNull HKQuantityType quantityType, @NotNull HKQuantity sumQuantity)predicateForWorkoutsWithOperatorType:quantityType:sumQuantity: Creates a predicate for use with HKQuery subclasses.static @NotNull NSPredicatepredicateForWorkoutsWithOperatorTypeTotalDistance(long operatorType, @NotNull HKQuantity totalDistance)Deprecated.static @NotNull NSPredicatepredicateForWorkoutsWithOperatorTypeTotalEnergyBurned(long operatorType, @NotNull HKQuantity totalEnergyBurned)Deprecated.static @NotNull NSPredicatepredicateForWorkoutsWithOperatorTypeTotalFlightsClimbed(long operatorType, @NotNull HKQuantity totalFlightsClimbed)Deprecated.static @NotNull NSPredicatepredicateForWorkoutsWithOperatorTypeTotalSwimmingStrokeCount(long operatorType, @NotNull HKQuantity totalSwimmingStrokeCount)Deprecated.static @NotNull NSPredicatepredicateForWorkoutsWithWorkoutActivityType(long workoutActivityType)predicateForWorkoutsWithWorkoutActivityType: Creates a predicate for use with HKQuery subclasses.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)@Nullable HKSampleTypesampleType()Deprecated.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static booleanuseStoredAccessor()Deprecated.static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, 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, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static HKQuery alloc()
-
allocWithZone
public static HKQuery allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
new_objc
public static HKQuery new_objc()
-
predicateForActivitySummariesBetweenStartDateComponentsEndDateComponents
@NotNull public static @NotNull NSPredicate predicateForActivitySummariesBetweenStartDateComponentsEndDateComponents(@NotNull @NotNull NSDateComponents startDateComponents, @NotNull @NotNull NSDateComponents endDateComponents)
predicateForActivitySummariesBetweenStartDateComponents:endDateComponents: Creates a predicate for use with HKActivitySummaryQuery Creates a query predicate that matches HKActivitySummaries that fall between the given date components.- Parameters:
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. API-Since: 9.3
-
predicateForActivitySummaryWithDateComponents
@NotNull public static @NotNull NSPredicate predicateForActivitySummaryWithDateComponents(@NotNull @NotNull NSDateComponents dateComponents)
predicateForActivitySummaryWithDateComponents: Creates a predicate for use with HKActivitySummaryQuery Creates a query predicate that matches HKActivitySummaries with the given date components.- Parameters:
dateComponents- The date components of the activity summary. These date components should contain era, year, month, and day components in the gregorian calendar. API-Since: 9.3
-
predicateForCategorySamplesWithOperatorTypeValue
@NotNull public static @NotNull NSPredicate predicateForCategorySamplesWithOperatorTypeValue(long operatorType, long value)
-
predicateForObjectWithUUID
@NotNull public static @NotNull NSPredicate predicateForObjectWithUUID(@NotNull @NotNull NSUUID UUID)
predicateForObjectWithUUID: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches the object saved with a particular UUID.- Parameters:
UUID- The UUID of the object.
-
predicateForObjectsFromDevices
@NotNull public static @NotNull NSPredicate predicateForObjectsFromDevices(@NotNull @NotNull NSSet<? extends HKDevice> devices)
predicateForObjectsFromDevices: 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:.- Parameters:
devices- The set of devices that generated data. API-Since: 9.0
-
predicateForObjectsFromSource
@NotNull public static @NotNull NSPredicate predicateForObjectsFromSource(@NotNull @NotNull HKSource source)
predicateForObjectsFromSource: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches objects saved by a given source.- Parameters:
source- The source.
-
predicateForObjectsFromSourceRevisions
@NotNull public static @NotNull NSPredicate predicateForObjectsFromSourceRevisions(@NotNull @NotNull NSSet<? extends HKSourceRevision> sourceRevisions)
predicateForObjectsFromSourceRevisions: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches objects saved by any of the specified HKSourceRevisions.- Parameters:
sourceRevisions- The list of source revisions. API-Since: 9.0
-
predicateForObjectsFromSources
@NotNull public static @NotNull NSPredicate predicateForObjectsFromSources(@NotNull @NotNull NSSet<? extends HKSource> sources)
predicateForObjectsFromSources: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches objects saved by any of the given sources.- Parameters:
sources- The list of sources.
-
predicateForObjectsFromWorkout
@NotNull public static @NotNull NSPredicate predicateForObjectsFromWorkout(@NotNull @NotNull HKWorkout workout)
predicateForObjectsFromWorkout: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches the objects that have been added to the given workout.- Parameters:
workout- The HKWorkout that the object was added to.
-
predicateForObjectsWithDevicePropertyAllowedValues
@NotNull public static @NotNull NSPredicate predicateForObjectsWithDevicePropertyAllowedValues(@NotNull @NotNull java.lang.String key, @NotNull @NotNull NSSet<java.lang.String> allowedValues)
predicateForObjectsWithDeviceProperty: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.- Parameters:
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. API-Since: 9.0
-
predicateForObjectsWithMetadataKey
@NotNull public static @NotNull NSPredicate predicateForObjectsWithMetadataKey(@NotNull @NotNull java.lang.String key)
predicateForObjectsWithMetadataKey: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches objects with metadata that contains a given key.- Parameters:
key- The metadata key.
-
predicateForObjectsWithMetadataKeyAllowedValues
@NotNull public static @NotNull NSPredicate predicateForObjectsWithMetadataKeyAllowedValues(@NotNull @NotNull java.lang.String key, @NotNull @NotNull NSArray<?> allowedValues)
predicateForObjectsWithMetadataKey: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.- Parameters:
key- The metadata key.allowedValues- The list of values that the metadata value can be equal to.
-
predicateForObjectsWithMetadataKeyOperatorTypeValue
@NotNull public static @NotNull NSPredicate predicateForObjectsWithMetadataKeyOperatorTypeValue(@NotNull @NotNull java.lang.String key, long operatorType, @NotNull @NotNull java.lang.Object value)
predicateForObjectsWithMetadataKey:operatorType: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.- Parameters:
key- The metadata key.operatorType- The comparison operator type for the expression.value- The value to be compared against.
-
predicateForObjectsWithNoCorrelation
@NotNull public static @NotNull NSPredicate predicateForObjectsWithNoCorrelation()
predicateForObjectsNoCorrelation Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches the objects that are not associated with an HKCorrelation.
-
predicateForObjectsWithUUIDs
@NotNull public static @NotNull NSPredicate predicateForObjectsWithUUIDs(@NotNull @NotNull NSSet<? extends NSUUID> UUIDs)
predicateForObjectsWithUUIDs: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches the objects saved with one of the given UUIDs.- Parameters:
UUIDs- The set of NSUUIDs.
-
predicateForQuantitySamplesWithOperatorTypeQuantity
@NotNull public static @NotNull NSPredicate predicateForQuantitySamplesWithOperatorTypeQuantity(long operatorType, @NotNull @NotNull HKQuantity quantity)
predicateForQuantitySamplesWithOperatorType: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.- Parameters:
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.
-
predicateForSamplesWithStartDateEndDateOptions
@NotNull public static @NotNull NSPredicate predicateForSamplesWithStartDateEndDateOptions(@Nullable @Nullable NSDate startDate, @Nullable @Nullable NSDate endDate, long options)
predicateForSamplesWithStartDate:endDate: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.- Parameters:
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.
-
predicateForWorkoutsWithOperatorTypeDuration
@NotNull public static @NotNull NSPredicate predicateForWorkoutsWithOperatorTypeDuration(long operatorType, double duration)
predicateForWorkoutsWithOperatorType:duration: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKWorkouts by the given operator type and duration- Parameters:
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.
-
predicateForWorkoutsWithOperatorTypeTotalDistance
@NotNull @Deprecated public static @NotNull NSPredicate predicateForWorkoutsWithOperatorTypeTotalDistance(long operatorType, @NotNull @NotNull HKQuantity totalDistance)
Deprecated.predicateForWorkoutsWithOperatorType:totalDistance: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKWorkouts by the given operator type and totalEnergyBurned- Parameters:
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. API-Since: 8.0 Deprecated-Since: 100000.0 Deprecated-Message: Use predicateForWorkoutActivitiesWithOperatorType:quantityType:sumQuantity: passing the HKQuantityType for the desired distance type
-
predicateForWorkoutsWithOperatorTypeTotalEnergyBurned
@NotNull @Deprecated public static @NotNull NSPredicate predicateForWorkoutsWithOperatorTypeTotalEnergyBurned(long operatorType, @NotNull @NotNull HKQuantity totalEnergyBurned)
Deprecated.predicateForWorkoutsWithOperatorType:totalEnergyBurned: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKWorkouts by the given operator type and totalEnergyBurned- Parameters:
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. API-Since: 8.0 Deprecated-Since: 100000.0 Deprecated-Message: Use predicateForWorkoutActivitiesWithOperatorType:quantityType:sumQuantity: passing the HKQuantityType for HKQuantityTypeIdentifierActiveEnergyBurned
-
predicateForWorkoutsWithOperatorTypeTotalSwimmingStrokeCount
@NotNull @Deprecated public static @NotNull NSPredicate predicateForWorkoutsWithOperatorTypeTotalSwimmingStrokeCount(long operatorType, @NotNull @NotNull HKQuantity totalSwimmingStrokeCount)
Deprecated.predicateForWorkoutsWithOperatorType:totalSwimmingStrokeCount: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKWorkouts by the given operator type and totalSwimmingStrokeCount- Parameters:
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. API-Since: 10.0 Deprecated-Since: 100000.0 Deprecated-Message: Use predicateForWorkoutActivitiesWithOperatorType:quantityType:sumQuantity:
-
predicateForWorkoutsWithWorkoutActivityType
@NotNull public static @NotNull NSPredicate predicateForWorkoutsWithWorkoutActivityType(long workoutActivityType)
predicateForWorkoutsWithWorkoutActivityType: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKWorkouts with the given HKWorkoutActivityType.- Parameters:
workoutActivityType- The HKWorkoutActivity type of the workout
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
objectType
@Nullable public @Nullable HKObjectType objectType()
API-Since: 9.3
-
predicate
@Nullable public @Nullable NSPredicate predicate()
-
sampleType
@Nullable @Deprecated public @Nullable HKSampleType sampleType()
Deprecated.API-Since: 8.0 Deprecated-Since: 9.3
-
predicateForWorkoutsWithOperatorTypeTotalFlightsClimbed
@NotNull @Deprecated public static @NotNull NSPredicate predicateForWorkoutsWithOperatorTypeTotalFlightsClimbed(long operatorType, @NotNull @NotNull HKQuantity totalFlightsClimbed)
Deprecated.predicateForWorkoutsWithOperatorType:totalFlightsClimbed: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKWorkouts by the given operator type and totalFlightsClimbed- Parameters:
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. API-Since: 11.0 Deprecated-Since: 100000.0 Deprecated-Message: Use predicateForWorkoutActivitiesWithOperatorType:quantityType:sumQuantity: passing the HKQuantityType for HKQuantityTypeIdentifierSwimmingStrokeCount
-
predicateForClinicalRecordsFromSourceFHIRResourceTypeIdentifier
@NotNull public static @NotNull NSPredicate predicateForClinicalRecordsFromSourceFHIRResourceTypeIdentifier(@NotNull @NotNull HKSource source, @NotNull @NotNull java.lang.String resourceType, @NotNull @NotNull java.lang.String identifier)
predicateForClinicalRecordsFromSource:withFHIRResourceType: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.- Parameters:
source- The source.resourceType- The FHIR resource type.identifier- The FHIR identifier. API-Since: 12.0
-
predicateForClinicalRecordsWithFHIRResourceType
@NotNull public static @NotNull NSPredicate predicateForClinicalRecordsWithFHIRResourceType(@NotNull @NotNull java.lang.String resourceType)
predicateForClinicalRecordsWithFHIRResourceType: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKClinicalRecords with a specific FHIR resource type.- Parameters:
resourceType- The FHIR resource type. API-Since: 12.0
-
predicateForElectrocardiogramsWithClassification
@NotNull public static @NotNull NSPredicate predicateForElectrocardiogramsWithClassification(long classification)
predicateForElectrocardiogramsWithClassification: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKElectrocardiograms with a specific classification.- Parameters:
classification- The classification for the electrocardiogram. API-Since: 14.0
-
predicateForElectrocardiogramsWithSymptomsStatus
@NotNull public static @NotNull NSPredicate predicateForElectrocardiogramsWithSymptomsStatus(long symptomsStatus)
predicateForElectrocardiogramsWithSymptomsStatus: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKElectrocardiograms with a specificied symptoms status.- Parameters:
symptomsStatus- The symptoms status for the electrocardiogram. API-Since: 14.0
-
predicateForObjectsAssociatedWithElectrocardiogram
@NotNull public static @NotNull NSPredicate predicateForObjectsAssociatedWithElectrocardiogram(@NotNull @NotNull HKElectrocardiogram electrocardiogram)
predicateForObjectsAssociatedWithElectrocardiogram: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches the objects that have been added to the given electrocardiogram- Parameters:
electrocardiogram- The HKElectrocardiogram that the object was added to. API-Since: 14.0
-
predicateForVerifiableClinicalRecordsWithRelevantDateWithinDateInterval
@NotNull public static @NotNull NSPredicate predicateForVerifiableClinicalRecordsWithRelevantDateWithinDateInterval(@NotNull @NotNull NSDateInterval dateInterval)
predicateForVerifiableClinicalRecordsWithRelevantDateWithinDateInterval: Creates a predicate for use with HKQuery subclasses. Creates a predicate that matches HKVerifiableClinicalRecords with a relevant date within a date interval.- Parameters:
dateInterval- The date interval that the record's relevant date is in. API-Since: 15.0
-
predicateForCategorySamplesEqualToValues
@NotNull public static @NotNull NSPredicate predicateForCategorySamplesEqualToValues(@NotNull @NotNull NSSet<? extends NSNumber> values)
predicateForCategorySamplesEqualToValues: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches all specified category values.
-
predicateForWorkoutActivitiesWithOperatorTypeDuration
@NotNull public static @NotNull NSPredicate predicateForWorkoutActivitiesWithOperatorTypeDuration(long operatorType, double duration)
predicateForWorkoutActivitiesWithOperatorType:duration: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKWorkoutActivity objects by the given operator type and duration. The resulting predicate should be wrapped using predicateForWorkoutsWithActivityPredicate: before being used in a query.- Parameters:
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. API-Since: 16.0
-
predicateForWorkoutActivitiesWithOperatorTypeQuantityTypeAverageQuantity
@NotNull public static @NotNull NSPredicate predicateForWorkoutActivitiesWithOperatorTypeQuantityTypeAverageQuantity(long operatorType, @NotNull @NotNull HKQuantityType quantityType, @NotNull @NotNull HKQuantity averageQuantity)
predicateForWorkoutActivitiesWithOperatorType:quantityType:averageQuantity: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKWorkoutActivity objetcs by the given operator type and averageQuantity in the statistics for the specified type. The resulting predicate should be wrapped using predicateForWorkoutsWithActivityPredicate: before being used in a query.- Parameters:
operatorType- The operator type for the expression.quantityType- The quantity type to compare statistics for. Should be a discrete quantity type.averageQuantity- The average value that the activity statistics are being compared to. The unit for this value should match the allowed values for the quantityType. API-Since: 16.0
-
predicateForWorkoutActivitiesWithOperatorTypeQuantityTypeMaximumQuantity
@NotNull public static @NotNull NSPredicate predicateForWorkoutActivitiesWithOperatorTypeQuantityTypeMaximumQuantity(long operatorType, @NotNull @NotNull HKQuantityType quantityType, @NotNull @NotNull HKQuantity maximumQuantity)
predicateForWorkoutActivitiesWithOperatorType:quantityType:maximumQuantity: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKWorkoutActivity objetcs by the given operator type and maximumQuantity in the statistics for the specified type. The resulting predicate should be wrapped using predicateForWorkoutsWithActivityPredicate: before being used in a query.- Parameters:
operatorType- The operator type for the expression.quantityType- The quantity type to compare statistics for. Should be a discrete quantity type.maximumQuantity- The maximum value that the activity statistics are being compared to. The unit for this value should match the allowed values for the quantityType. API-Since: 16.0
-
predicateForWorkoutActivitiesWithOperatorTypeQuantityTypeMinimumQuantity
@NotNull public static @NotNull NSPredicate predicateForWorkoutActivitiesWithOperatorTypeQuantityTypeMinimumQuantity(long operatorType, @NotNull @NotNull HKQuantityType quantityType, @NotNull @NotNull HKQuantity minimumQuantity)
predicateForWorkoutActivitiesWithOperatorType:quantityType:minimumQuantity: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKWorkoutActivity objetcs by the given operator type and minimumQuantity in the statistics for the specified type. The resulting predicate should be wrapped using predicateForWorkoutsWithActivityPredicate: before being used in a query.- Parameters:
operatorType- The operator type for the expression.quantityType- The quantity type to compare statistics for. Should be a discrete quantity type.minimumQuantity- The minumum value that the activty statistics are being compared to. The unit for this value should match the allowed values for the quantityType. API-Since: 16.0
-
predicateForWorkoutActivitiesWithOperatorTypeQuantityTypeSumQuantity
@NotNull public static @NotNull NSPredicate predicateForWorkoutActivitiesWithOperatorTypeQuantityTypeSumQuantity(long operatorType, @NotNull @NotNull HKQuantityType quantityType, @NotNull @NotNull HKQuantity sumQuantity)
predicateForWorkoutActivitiesWithOperatorType:quantityType:sumQuantity: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKWorkoutActivity objetcs by the given operator type and sumQuantity in the statistics for the specified type. The resulting predicate should be wrapped using predicateForWorkoutsWithActivityPredicate: before being used in a query.- Parameters:
operatorType- The operator type for the expression.quantityType- The quantity type to compare statistics for. Should be a cumulative quantity type.sumQuantity- The sum value that the activity statistics are being compared to. The unit for this value should match the allowed values for the quantityType. API-Since: 16.0
-
predicateForWorkoutActivitiesWithStartDateEndDateOptions
@NotNull public static @NotNull NSPredicate predicateForWorkoutActivitiesWithStartDateEndDateOptions(@Nullable @Nullable NSDate startDate, @Nullable @Nullable NSDate endDate, long options)
predicateForWorkoutActivitiesWithStartDate:endDate:options: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKWorkoutActivity objects with a startDate and an endDate that lie inside of a given time interval. The resulting predicate should be wrapped using predicateForWorkoutsWithActivityPredicate: before being used in a query.- Parameters:
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 activity's time interval overlaps with the predicate's time interval. API-Since: 16.0
-
predicateForWorkoutActivitiesWithWorkoutActivityType
@NotNull public static @NotNull NSPredicate predicateForWorkoutActivitiesWithWorkoutActivityType(long workoutActivityType)
predicateForWorkoutActivitiesWithWorkoutActivityType: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKWorkoutActivity objects with the given HKWorkoutActivityType. The resulting predicate should be wrapped using predicateForWorkoutsWithActivityPredicate: before being used in a query.- Parameters:
workoutActivityType- The HKWorkoutActivity type of the workout API-Since: 16.0
-
predicateForWorkoutsWithActivityPredicate
@NotNull public static @NotNull NSPredicate predicateForWorkoutsWithActivityPredicate(@NotNull @NotNull NSPredicate activityPredicate)
predicateForWorkoutsWithActivityPredicate: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches workouts containing an activity matching the passed predicate.- Parameters:
activityPredicate- The predicate on the activities of the workout API-Since: 16.0
-
predicateForWorkoutsWithOperatorTypeQuantityTypeAverageQuantity
@NotNull public static @NotNull NSPredicate predicateForWorkoutsWithOperatorTypeQuantityTypeAverageQuantity(long operatorType, @NotNull @NotNull HKQuantityType quantityType, @NotNull @NotNull HKQuantity averageQuantity)
predicateForWorkoutsWithOperatorType:quantityType:averageQuantity: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKWorkouts by the given operator type and averageQuantity in the statistics for the specified type.- Parameters:
operatorType- The operator type for the expression.quantityType- The quantity type to compare statistics for. Should be a discrete quantity type.averageQuantity- The average value that the workout statistics are being compared to. The unit for this value should match the allowed values for the quantityType. API-Since: 16.0
-
predicateForWorkoutsWithOperatorTypeQuantityTypeMaximumQuantity
@NotNull public static @NotNull NSPredicate predicateForWorkoutsWithOperatorTypeQuantityTypeMaximumQuantity(long operatorType, @NotNull @NotNull HKQuantityType quantityType, @NotNull @NotNull HKQuantity maximumQuantity)
predicateForWorkoutsWithOperatorType:quantityType:maximumQuantity: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKWorkouts by the given operator type and maximumQuantity in the statistics for the specified type.- Parameters:
operatorType- The operator type for the expression.quantityType- The quantity type to compare statistics for. Should be a discrete quantity type.maximumQuantity- The maximum value that the workout statistics are being compared to. The unit for this value should match the allowed values for the quantityType. API-Since: 16.0
-
predicateForWorkoutsWithOperatorTypeQuantityTypeMinimumQuantity
@NotNull public static @NotNull NSPredicate predicateForWorkoutsWithOperatorTypeQuantityTypeMinimumQuantity(long operatorType, @NotNull @NotNull HKQuantityType quantityType, @NotNull @NotNull HKQuantity minimumQuantity)
predicateForWorkoutsWithOperatorType:quantityType:minimumQuantity: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKWorkouts by the given operator type and minimumQuantity in the statistics for the specified type.- Parameters:
operatorType- The operator type for the expression.quantityType- The quantity type to compare statistics for. Should be a discrete quantity type.minimumQuantity- The minumum value that the workout statistics are being compared to. The unit for this value should match the allowed values for the quantityType. API-Since: 16.0
-
predicateForWorkoutsWithOperatorTypeQuantityTypeSumQuantity
@NotNull public static @NotNull NSPredicate predicateForWorkoutsWithOperatorTypeQuantityTypeSumQuantity(long operatorType, @NotNull @NotNull HKQuantityType quantityType, @NotNull @NotNull HKQuantity sumQuantity)
predicateForWorkoutsWithOperatorType:quantityType:sumQuantity: Creates a predicate for use with HKQuery subclasses. Creates a query predicate that matches HKWorkouts by the given operator type and sumQuantity in the statistics for the specified type.- Parameters:
operatorType- The operator type for the expression.quantityType- The quantity type to compare statistics for. Should be a cumulative quantity type.sumQuantity- The sum value that the workout statistics are being compared to. The unit for this value should match the allowed values for the quantityType. API-Since: 16.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-