Class HKQuery

    • Constructor Detail

      • HKQuery

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static HKQuery 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()
      • 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)
        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.
      • predicateForActivitySummaryWithDateComponents

        public static NSPredicate predicateForActivitySummaryWithDateComponents​(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.
      • predicateForCategorySamplesWithOperatorTypeValue

        public static NSPredicate predicateForCategorySamplesWithOperatorTypeValue​(long operatorType,
                                                                                   long value)
        predicateForCategorySamplesWithOperatorType: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.
        Parameters:
        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.
      • predicateForObjectWithUUID

        public static NSPredicate predicateForObjectWithUUID​(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

        public static NSPredicate predicateForObjectsFromDevices​(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.
      • predicateForObjectsFromSource

        public static NSPredicate predicateForObjectsFromSource​(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

        public static NSPredicate predicateForObjectsFromSourceRevisions​(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.
      • predicateForObjectsFromSources

        public static NSPredicate predicateForObjectsFromSources​(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

        public static NSPredicate predicateForObjectsFromWorkout​(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

        public static NSPredicate predicateForObjectsWithDevicePropertyAllowedValues​(java.lang.String key,
                                                                                     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.
      • predicateForObjectsWithMetadataKey

        public static NSPredicate predicateForObjectsWithMetadataKey​(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

        public static NSPredicate predicateForObjectsWithMetadataKeyAllowedValues​(java.lang.String key,
                                                                                  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

        public static NSPredicate predicateForObjectsWithMetadataKeyOperatorTypeValue​(java.lang.String key,
                                                                                      long operatorType,
                                                                                      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

        public static 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

        public static NSPredicate predicateForObjectsWithUUIDs​(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

        public static NSPredicate predicateForQuantitySamplesWithOperatorTypeQuantity​(long operatorType,
                                                                                      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

        public static NSPredicate predicateForSamplesWithStartDateEndDateOptions​(NSDate startDate,
                                                                                 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

        public static 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

        public static NSPredicate predicateForWorkoutsWithOperatorTypeTotalDistance​(long operatorType,
                                                                                    HKQuantity totalDistance)
        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.
      • predicateForWorkoutsWithOperatorTypeTotalEnergyBurned

        public static NSPredicate predicateForWorkoutsWithOperatorTypeTotalEnergyBurned​(long operatorType,
                                                                                        HKQuantity totalEnergyBurned)
        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.
      • predicateForWorkoutsWithOperatorTypeTotalSwimmingStrokeCount

        public static NSPredicate predicateForWorkoutsWithOperatorTypeTotalSwimmingStrokeCount​(long operatorType,
                                                                                               HKQuantity totalSwimmingStrokeCount)
        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.
      • predicateForWorkoutsWithWorkoutActivityType

        public static 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()
      • predicateForWorkoutsWithOperatorTypeTotalFlightsClimbed

        public static NSPredicate predicateForWorkoutsWithOperatorTypeTotalFlightsClimbed​(long operatorType,
                                                                                          HKQuantity totalFlightsClimbed)
        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.
      • predicateForClinicalRecordsFromSourceFHIRResourceTypeIdentifier

        public static NSPredicate predicateForClinicalRecordsFromSourceFHIRResourceTypeIdentifier​(HKSource source,
                                                                                                  java.lang.String resourceType,
                                                                                                  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.
      • predicateForClinicalRecordsWithFHIRResourceType

        public static NSPredicate predicateForClinicalRecordsWithFHIRResourceType​(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.
      • predicateForElectrocardiogramsWithClassification

        public static 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.
      • predicateForElectrocardiogramsWithSymptomsStatus

        public static 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.
      • predicateForObjectsAssociatedWithElectrocardiogram

        public static NSPredicate predicateForObjectsAssociatedWithElectrocardiogram​(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.