Class HKAnchoredObjectQuery

  • All Implemented Interfaces:
    NSObject

    public class HKAnchoredObjectQuery
    extends HKQuery
    HKAnchoredObjectQuery This query can be used by an application to find out about new or deleted samples in the HealthKit database.
    • Constructor Detail

      • HKAnchoredObjectQuery

        protected HKAnchoredObjectQuery​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • 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()
      • initWithTypePredicateAnchorLimitResultsHandler

        public HKAnchoredObjectQuery initWithTypePredicateAnchorLimitResultsHandler​(HKSampleType type,
                                                                                    NSPredicate predicate,
                                                                                    HKQueryAnchor anchor,
                                                                                    long limit,
                                                                                    HKAnchoredObjectQuery.Block_initWithTypePredicateAnchorLimitResultsHandler handler)
        initWithType:predicate:anchor:limit:resultsHandler: Returns a query that will retrieve HKSamples and HKDeletedObjects matching the given predicate that are newer than the given anchor. If no updateHandler is set on the query, the query will automatically stop after calling resultsHandler. Otherwise, the query continues to run and call updateHandler as samples matching the predicate are created or deleted.
        Parameters:
        type - The type of sample to retrieve.
        predicate - The predicate which samples should match.
        anchor - The anchor which was returned by a previous HKAnchoredObjectQuery result or update handler. Pass nil when querying for the first time.
        limit - The maximum number of samples and deleted objects to return. Pass HKObjectQueryNoLimit for no limit.
        handler - The block to invoke with results when the query has finished finding.
      • setUpdateHandler

        public void setUpdateHandler​(HKAnchoredObjectQuery.Block_setUpdateHandler value)
        [@property] updateHandler An optional handler to be called when samples matching the given predicate are added or deleted. This property may not be modified once the query has been executed. It may only be set if the query has no limit.
      • updateHandler

        public HKAnchoredObjectQuery.Block_updateHandler_ret updateHandler()
        [@property] updateHandler An optional handler to be called when samples matching the given predicate are added or deleted. This property may not be modified once the query has been executed. It may only be set if the query has no limit.
      • 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)