Class HKWorkoutActivity

    • Constructor Detail

      • HKWorkoutActivity

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

      • UUID

        @NotNull
        public @NotNull NSUUID UUID()
        [@property] UUID A unique identifier of the activity in the HealthKit database.
      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allStatistics

        @NotNull
        public @NotNull NSDictionary<? extends HKQuantityType,​? extends HKStatistics> allStatistics()
        [@property] allStatistics A dictionary of statistics per quantity type during the activity This dictionary will contain HKStatistics objects containing the statistics by quantity sample type for all of the samples that have been added to the workout within the date interval of this activity. API-Since: 16.0
      • allocWithZone

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

        public double duration()
        [@property] duration The length of time that the workout activity was recording The duration is derived from the start and end dates of the activity and takes into account periods that the activity was paused. Periods that the activity was paused are based off of the workoutEvents property of the parent workout object.
      • endDate

        @Nullable
        public @Nullable NSDate endDate()
        [@property] endDate The point in time when the workout activity was ended. This value is nil when a workout activity is in progress.
      • hash_static

        public static long hash_static()
      • initWithWorkoutConfigurationStartDateEndDateMetadata

        public HKWorkoutActivity initWithWorkoutConfigurationStartDateEndDateMetadata​(@NotNull
                                                                                      @NotNull HKWorkoutConfiguration workoutConfiguration,
                                                                                      @NotNull
                                                                                      @NotNull NSDate startDate,
                                                                                      @Nullable
                                                                                      @Nullable NSDate endDate,
                                                                                      @Nullable
                                                                                      @Nullable NSDictionary<java.lang.String,​?> metadata)
        initWithWorkoutConfiguration:startDate:endDate:metadata: Initialize a new HKWorkoutActivity with the specified values.
        Parameters:
        workoutConfiguration - The configuration object describing the workout activity.
        startDate - The point in time when the workout activity was started.
        endDate - The point in time when the workout activity was ended.
        metadata - Metadata for the workout activity. (Optional)
      • 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)
      • metadata

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> metadata()
        [@property] metadata Extra information describing properties of the workout activity. Keys must be NSString and values must be either NSString, NSNumber, NSDate, or HKQuantity. See HKMetadata.h for potential metadata keys and values.
      • 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)
      • startDate

        @NotNull
        public @NotNull NSDate startDate()
        [@property] startDate The point in time when the workout activity was started.
      • statisticsForType

        @Nullable
        public @Nullable HKStatistics statisticsForType​(@NotNull
                                                        @NotNull HKQuantityType quantityType)
        statisticsForType: Returns an HKStatistics object containing the statistics for all the samples of the given type that have been added to the workout within the date interval of this activity. If there are no samples of the given type then nil is returned.
        Parameters:
        quantityType - The quantity type to gather statistics about.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • workoutConfiguration

        @NotNull
        public @NotNull HKWorkoutConfiguration workoutConfiguration()
        [@property] workoutConfiguration The configuration object describing the workout activity.
      • workoutEvents

        @NotNull
        public @NotNull NSArray<? extends HKWorkoutEvent> workoutEvents()
        [@property] workoutEvents An array of HKWorkoutEvents that occurred during the workout activity. These events will be ordered by date in ascending order. These events are a subset of the workout events that take place between the start date and end date of the activity. This includes any event that overlaps the activity, even partially. Consequently, some events may be included in more than one activity.
      • copyWithZone

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

        public static boolean supportsSecureCoding()
      • _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
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.