Package apple.healthkit
Class HKDocumentQuery
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.healthkit.HKQuery
-
- apple.healthkit.HKDocumentQuery
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHKDocumentQuery.Block_initWithDocumentTypePredicateLimitSortDescriptorsIncludeDocumentDataResultsHandler-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHKDocumentQuery(org.moe.natj.general.Pointer peer)
-
Method Summary
-
Methods inherited from class apple.healthkit.HKQuery
objectType, predicate, sampleType
-
Methods inherited from class apple.NSObject
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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static HKDocumentQuery alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static 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
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
predicateForActivitySummariesBetweenStartDateComponentsEndDateComponents
public static NSPredicate predicateForActivitySummariesBetweenStartDateComponentsEndDateComponents(NSDateComponents startDateComponents, NSDateComponents endDateComponents)
-
predicateForActivitySummaryWithDateComponents
public static NSPredicate predicateForActivitySummaryWithDateComponents(NSDateComponents dateComponents)
-
predicateForCategorySamplesWithOperatorTypeValue
public static NSPredicate predicateForCategorySamplesWithOperatorTypeValue(long operatorType, long value)
-
predicateForObjectWithUUID
public static NSPredicate predicateForObjectWithUUID(NSUUID UUID)
-
predicateForObjectsFromDevices
public static NSPredicate predicateForObjectsFromDevices(NSSet<? extends HKDevice> devices)
-
predicateForObjectsFromSource
public static NSPredicate predicateForObjectsFromSource(HKSource source)
-
predicateForObjectsFromSourceRevisions
public static NSPredicate predicateForObjectsFromSourceRevisions(NSSet<? extends HKSourceRevision> sourceRevisions)
-
predicateForObjectsFromSources
public static NSPredicate predicateForObjectsFromSources(NSSet<? extends HKSource> sources)
-
predicateForObjectsFromWorkout
public static NSPredicate predicateForObjectsFromWorkout(HKWorkout workout)
-
predicateForObjectsWithDevicePropertyAllowedValues
public static NSPredicate predicateForObjectsWithDevicePropertyAllowedValues(java.lang.String key, NSSet<java.lang.String> allowedValues)
-
predicateForObjectsWithMetadataKey
public static NSPredicate predicateForObjectsWithMetadataKey(java.lang.String key)
-
predicateForObjectsWithMetadataKeyAllowedValues
public static NSPredicate predicateForObjectsWithMetadataKeyAllowedValues(java.lang.String key, NSArray<?> allowedValues)
-
predicateForObjectsWithMetadataKeyOperatorTypeValue
public static NSPredicate predicateForObjectsWithMetadataKeyOperatorTypeValue(java.lang.String key, long operatorType, java.lang.Object value)
-
predicateForObjectsWithNoCorrelation
public static NSPredicate predicateForObjectsWithNoCorrelation()
-
predicateForObjectsWithUUIDs
public static NSPredicate predicateForObjectsWithUUIDs(NSSet<? extends NSUUID> UUIDs)
-
predicateForQuantitySamplesWithOperatorTypeQuantity
public static NSPredicate predicateForQuantitySamplesWithOperatorTypeQuantity(long operatorType, HKQuantity quantity)
-
predicateForSamplesWithStartDateEndDateOptions
public static NSPredicate predicateForSamplesWithStartDateEndDateOptions(NSDate startDate, NSDate endDate, long options)
-
predicateForWorkoutsWithOperatorTypeDuration
public static NSPredicate predicateForWorkoutsWithOperatorTypeDuration(long operatorType, double duration)
-
predicateForWorkoutsWithOperatorTypeTotalDistance
public static NSPredicate predicateForWorkoutsWithOperatorTypeTotalDistance(long operatorType, HKQuantity totalDistance)
-
predicateForWorkoutsWithOperatorTypeTotalEnergyBurned
public static NSPredicate predicateForWorkoutsWithOperatorTypeTotalEnergyBurned(long operatorType, HKQuantity totalEnergyBurned)
-
predicateForWorkoutsWithOperatorTypeTotalSwimmingStrokeCount
public static NSPredicate predicateForWorkoutsWithOperatorTypeTotalSwimmingStrokeCount(long operatorType, HKQuantity totalSwimmingStrokeCount)
-
predicateForWorkoutsWithWorkoutActivityType
public static NSPredicate predicateForWorkoutsWithWorkoutActivityType(long workoutActivityType)
-
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()
-
includeDocumentData
public boolean includeDocumentData()
[@property] includeDocumentData The XML content for documents may be large. This property can be used to control whether the query returns the XML content for each record.
-
init
public HKDocumentQuery init()
-
initWithDocumentTypePredicateLimitSortDescriptorsIncludeDocumentDataResultsHandler
public HKDocumentQuery initWithDocumentTypePredicateLimitSortDescriptorsIncludeDocumentDataResultsHandler(HKDocumentType documentType, NSPredicate predicate, long limit, NSArray<? extends NSSortDescriptor> sortDescriptors, boolean includeDocumentData, HKDocumentQuery.Block_initWithDocumentTypePredicateLimitSortDescriptorsIncludeDocumentDataResultsHandler resultsHandler)
initWithDocumentType:predicate:limit:sortDescriptors:includeDocumentData:resultsHandler: Returns a query that will retrieve HKDocumentSamples matching the given predicate. Health documents may contain sensitive data that a user may want to control explicitly. HKDocumentSample objects returned by HKSampleQuery and HKAnchoredObjectQuery do not include this data (i.e., the document property is nil). This query can be used to retrieve fully populated HKDocumentSample instances. The query will prompt the user to authorize your app to read individual documents. The query will then return the documents that your app is authorized to read. The user will only be asked to authorize your app to read documents that are new since the last time an HKDocumentQuery was executed.- Parameters:
documentType- The type of document to retreive.predicate- The predicate which documents should match.limit- The maximum number of documents to return. Pass HKObjectQueryNoLimit for no limit.sortDescriptors- The sort descriptors to use to order the resulting documents.includeDocumentData- If true, the document content will be returned with the HKDocumentSample instance. This option can be used to limit the size of the content returned since the content may be large.resultsHandler- The block that will receive query results. Results will be returned incrementally through several calls to this block. When there are no more results, the done parameter will be YES and the results array will be empty. If results is nil, then an error has occurred and the error parameter will be set. Delivery of results can be stopped by calling HKHealthStore's stopQuery: method.
-
limit
public long limit()
[@property] limit The maximum number of documents the receiver will return upon completion.
-
sortDescriptors
public NSArray<? extends NSSortDescriptor> sortDescriptors()
[@property] sortDescriptors An array of NSSortDescriptors.
-
predicateForWorkoutsWithOperatorTypeTotalFlightsClimbed
public static NSPredicate predicateForWorkoutsWithOperatorTypeTotalFlightsClimbed(long operatorType, HKQuantity totalFlightsClimbed)
-
predicateForClinicalRecordsFromSourceFHIRResourceTypeIdentifier
public static NSPredicate predicateForClinicalRecordsFromSourceFHIRResourceTypeIdentifier(HKSource source, java.lang.String resourceType, java.lang.String identifier)
-
predicateForClinicalRecordsWithFHIRResourceType
public static NSPredicate predicateForClinicalRecordsWithFHIRResourceType(java.lang.String resourceType)
-
predicateForElectrocardiogramsWithClassification
public static NSPredicate predicateForElectrocardiogramsWithClassification(long classification)
-
predicateForElectrocardiogramsWithSymptomsStatus
public static NSPredicate predicateForElectrocardiogramsWithSymptomsStatus(long symptomsStatus)
-
predicateForObjectsAssociatedWithElectrocardiogram
public static NSPredicate predicateForObjectsAssociatedWithElectrocardiogram(HKElectrocardiogram electrocardiogram)
-
-