Class HKStatistics

    • Constructor Detail

      • HKStatistics

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • averageQuantity

        @Nullable
        public @Nullable HKQuantity averageQuantity()
        averageQuantity Returns the average quantity in the time period represented by the receiver.
      • averageQuantityForSource

        @Nullable
        public @Nullable HKQuantity averageQuantityForSource​(@NotNull
                                                             @NotNull HKSource source)
        averageQuantityForSource: Returns the average quantity for the given source in the time period represented by the receiver. If HKStatisticsOptionSeparateBySource is not specified, then this will always be nil.
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • endDate

        @NotNull
        public @NotNull NSDate endDate()
      • maximumQuantity

        @Nullable
        public @Nullable HKQuantity maximumQuantity()
        maximumQuantity Returns the maximum quantity in the time period represented by the receiver.
      • maximumQuantityForSource

        @Nullable
        public @Nullable HKQuantity maximumQuantityForSource​(@NotNull
                                                             @NotNull HKSource source)
        maximumQuantityForSource: Returns the maximum quantity for the given source in the time period represented by the receiver. If HKStatisticsOptionSeparateBySource is not specified, then this will always be nil.
      • minimumQuantity

        @Nullable
        public @Nullable HKQuantity minimumQuantity()
        minimumQuantity Returns the minimum quantity in the time period represented by the receiver.
      • minimumQuantityForSource

        @Nullable
        public @Nullable HKQuantity minimumQuantityForSource​(@NotNull
                                                             @NotNull HKSource source)
        minimumQuantityForSource: Returns the minimum quantity for the given source in the time period represented by the receiver. If HKStatisticsOptionSeparateBySource is not specified, then this will always be nil.
      • quantityType

        @NotNull
        public @NotNull HKQuantityType quantityType()
      • sources

        @Nullable
        public @Nullable NSArray<? extends HKSource> sources()
      • startDate

        @NotNull
        public @NotNull NSDate startDate()
      • sumQuantity

        @Nullable
        public @Nullable HKQuantity sumQuantity()
        sumQuantity Returns the sum of quantities in the time period represented by the receiver.
      • sumQuantityForSource

        @Nullable
        public @Nullable HKQuantity sumQuantityForSource​(@NotNull
                                                         @NotNull HKSource source)
        sumQuantityForSource: Returns the sum quantity for the given source in the time period represented by the receiver. If HKStatisticsOptionSeparateBySource is not specified, then this will always be nil.
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • duration

        @Nullable
        public @Nullable HKQuantity duration()
        Total duration (in seconds) covered by the samples represented by these statistics. Only present if HKStatisticsOptionDuration is is specified. duration Total duration, as a time-unit compatible quantity, covered by the samples represented by these statistics. Only present if HKStatisticsOptionDuration is is specified. API-Since: 13.0
      • durationForSource

        @Nullable
        public @Nullable HKQuantity durationForSource​(@NotNull
                                                      @NotNull HKSource source)
        durationForSource: Returns the duration, as a time-unit compatible quantity, for the given source in the time period represented by the receiver. If HKStatisticsOptionSeparateBySource is not specified, then this will always be nil. API-Since: 13.0
      • mostRecentQuantity

        @Nullable
        public @Nullable HKQuantity mostRecentQuantity()
        mostRecentQuantity Returns the most recent quantity in the time period represented by the receiver. API-Since: 12.0
      • mostRecentQuantityDateInterval

        @Nullable
        public @Nullable NSDateInterval mostRecentQuantityDateInterval()
        mostRecentQuantityDateInterval Returns the date interval of the most recent quantity in the time period represented by the receiver. API-Since: 12.0
      • mostRecentQuantityDateIntervalForSource

        @Nullable
        public @Nullable NSDateInterval mostRecentQuantityDateIntervalForSource​(@NotNull
                                                                                @NotNull HKSource source)
        mostRecentQuantityDateIntervalForSource: Returns the date interval of the most recent quantity for the given source in the time period represented by the receiver. If HKStatisticsOptionSeparateBySource is not specified, then this will always be nil. API-Since: 12.0
      • mostRecentQuantityForSource

        @Nullable
        public @Nullable HKQuantity mostRecentQuantityForSource​(@NotNull
                                                                @NotNull HKSource source)
        mostRecentQuantityForSource: Returns the most recent quantity for the given source in the time period represented by the receiver. If HKStatisticsOptionSeparateBySource is not specified, then this will always be nil. API-Since: 12.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.