Class HKUnit

    • Constructor Detail

      • HKUnit

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static HKUnit alloc()
      • allocWithZone

        public static HKUnit allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • atmosphereUnit

        @NotNull
        public static @NotNull HKUnit atmosphereUnit()
        atm
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • calorieUnit

        @NotNull
        @Deprecated
        public static @NotNull HKUnit calorieUnit()
        Deprecated.
        API-Since: 8.0 Deprecated-Since: 11.0 Deprecated-Message: Use smallCalorieUnit or largeCalorieUnit, depending on which you mean
      • 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)
      • centimeterOfWaterUnit

        @NotNull
        public static @NotNull HKUnit centimeterOfWaterUnit()
        cmAq
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • countUnit

        @NotNull
        public static @NotNull HKUnit countUnit()
        count
      • cupImperialUnit

        @NotNull
        public static @NotNull HKUnit cupImperialUnit()
        cup_imp API-Since: 9.0
      • cupUSUnit

        @NotNull
        public static @NotNull HKUnit cupUSUnit()
        cup_us API-Since: 9.0
      • dayUnit

        @NotNull
        public static @NotNull HKUnit dayUnit()
        d
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • degreeCelsiusUnit

        @NotNull
        public static @NotNull HKUnit degreeCelsiusUnit()
        degC
      • degreeFahrenheitUnit

        @NotNull
        public static @NotNull HKUnit degreeFahrenheitUnit()
        degF
      • description_static

        public static java.lang.String description_static()
      • energyFormatterUnitFromUnit

        public static long energyFormatterUnitFromUnit​(@NotNull
                                                       @NotNull HKUnit unit)
      • fluidOunceImperialUnit

        @NotNull
        public static @NotNull HKUnit fluidOunceImperialUnit()
        fl_oz_imp
      • fluidOunceUSUnit

        @NotNull
        public static @NotNull HKUnit fluidOunceUSUnit()
        fl_oz_us
      • footUnit

        @NotNull
        public static @NotNull HKUnit footUnit()
        ft
      • gramUnit

        @NotNull
        public static @NotNull HKUnit gramUnit()
        g
      • gramUnitWithMetricPrefix

        @NotNull
        public static @NotNull HKUnit gramUnitWithMetricPrefix​(long prefix)
        g
      • hash_static

        public static long hash_static()
      • hourUnit

        @NotNull
        public static @NotNull HKUnit hourUnit()
        hr
      • inchUnit

        @NotNull
        public static @NotNull HKUnit inchUnit()
        in
      • 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)
      • jouleUnit

        @NotNull
        public static @NotNull HKUnit jouleUnit()
        J
      • jouleUnitWithMetricPrefix

        @NotNull
        public static @NotNull HKUnit jouleUnitWithMetricPrefix​(long prefix)
        J
      • kelvinUnit

        @NotNull
        public static @NotNull HKUnit kelvinUnit()
        K
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • kilocalorieUnit

        @NotNull
        public static @NotNull HKUnit kilocalorieUnit()
        1 kcal = 4184.0 J
      • lengthFormatterUnitFromUnit

        public static long lengthFormatterUnitFromUnit​(@NotNull
                                                       @NotNull HKUnit unit)
      • literUnit

        @NotNull
        public static @NotNull HKUnit literUnit()
        L
      • literUnitWithMetricPrefix

        @NotNull
        public static @NotNull HKUnit literUnitWithMetricPrefix​(long prefix)
        L
      • massFormatterUnitFromUnit

        public static long massFormatterUnitFromUnit​(@NotNull
                                                     @NotNull HKUnit unit)
      • meterUnit

        @NotNull
        public static @NotNull HKUnit meterUnit()
        m
      • meterUnitWithMetricPrefix

        @NotNull
        public static @NotNull HKUnit meterUnitWithMetricPrefix​(long prefix)
        m
      • mileUnit

        @NotNull
        public static @NotNull HKUnit mileUnit()
        mi
      • millimeterOfMercuryUnit

        @NotNull
        public static @NotNull HKUnit millimeterOfMercuryUnit()
        mmHg
      • minuteUnit

        @NotNull
        public static @NotNull HKUnit minuteUnit()
        min
      • moleUnitWithMetricPrefixMolarMass

        @NotNull
        public static @NotNull HKUnit moleUnitWithMetricPrefixMolarMass​(long prefix,
                                                                        double gramsPerMole)
        mol
      • moleUnitWithMolarMass

        @NotNull
        public static @NotNull HKUnit moleUnitWithMolarMass​(double gramsPerMole)
        mol
      • new_objc

        public static HKUnit new_objc()
      • ounceUnit

        @NotNull
        public static @NotNull HKUnit ounceUnit()
        oz
      • pascalUnit

        @NotNull
        public static @NotNull HKUnit pascalUnit()
        Pa
      • pascalUnitWithMetricPrefix

        @NotNull
        public static @NotNull HKUnit pascalUnitWithMetricPrefix​(long prefix)
        Pa
      • percentUnit

        @NotNull
        public static @NotNull HKUnit percentUnit()
        % (0.0 - 1.0)
      • pintImperialUnit

        @NotNull
        public static @NotNull HKUnit pintImperialUnit()
        pt_imp
      • pintUSUnit

        @NotNull
        public static @NotNull HKUnit pintUSUnit()
        pt_us
      • poundUnit

        @NotNull
        public static @NotNull HKUnit poundUnit()
        lb
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • secondUnit

        @NotNull
        public static @NotNull HKUnit secondUnit()
        s
      • secondUnitWithMetricPrefix

        @NotNull
        public static @NotNull HKUnit secondUnitWithMetricPrefix​(long prefix)
        s
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • siemenUnit

        @NotNull
        public static @NotNull HKUnit siemenUnit()
        S
      • siemenUnitWithMetricPrefix

        @NotNull
        public static @NotNull HKUnit siemenUnitWithMetricPrefix​(long prefix)
        S
      • stoneUnit

        @NotNull
        public static @NotNull HKUnit stoneUnit()
        st
      • superclass_static

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

        public static boolean supportsSecureCoding()
      • unitFromEnergyFormatterUnit

        public static HKUnit unitFromEnergyFormatterUnit​(long energyFormatterUnit)
      • unitFromLengthFormatterUnit

        public static HKUnit unitFromLengthFormatterUnit​(long lengthFormatterUnit)
      • unitFromMassFormatterUnit

        public static HKUnit unitFromMassFormatterUnit​(long massFormatterUnit)
        The following methods convert between HKUnit and Foundation formatter units for mass, length and energy. When converting from Foundation formatter unit to HKUnit, if there's not a match, nil will be returned. When converting from HKUnit to the Foundation formatter unit, if there's not a match, an exception will be thrown.
      • unitFromString

        public static HKUnit unitFromString​(@NotNull
                                            @NotNull java.lang.String string)
      • version_static

        public static long version_static()
      • yardUnit

        @NotNull
        public static @NotNull HKUnit yardUnit()
        yd API-Since: 9.0
      • copyWithZone

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

        public boolean isNull()
      • reciprocalUnit

        @NotNull
        public @NotNull HKUnit reciprocalUnit()
      • _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
      • unitDividedByUnit

        @NotNull
        public @NotNull HKUnit unitDividedByUnit​(@NotNull
                                                 @NotNull HKUnit unit)
      • unitMultipliedByUnit

        @NotNull
        public @NotNull HKUnit unitMultipliedByUnit​(@NotNull
                                                    @NotNull HKUnit unit)
      • unitRaisedToPower

        @NotNull
        public @NotNull HKUnit unitRaisedToPower​(long power)
      • unitString

        @NotNull
        public @NotNull java.lang.String unitString()
        Returns a unique string representation for the unit that could be used with +unitFromString:
      • internationalUnit

        @NotNull
        public static @NotNull HKUnit internationalUnit()
        IU API-Since: 11.0
      • largeCalorieUnit

        @NotNull
        public static @NotNull HKUnit largeCalorieUnit()
        1 Cal = 4184.0 J API-Since: 11.0
      • smallCalorieUnit

        @NotNull
        public static @NotNull HKUnit smallCalorieUnit()
        1 cal = 4.1840 J API-Since: 11.0
      • decibelAWeightedSoundPressureLevelUnit

        @NotNull
        public static @NotNull HKUnit decibelAWeightedSoundPressureLevelUnit()
        dBASPL API-Since: 13.0
      • decibelHearingLevelUnit

        @NotNull
        public static @NotNull HKUnit decibelHearingLevelUnit()
        dBHL API-Since: 13.0
      • hertzUnit

        @NotNull
        public static @NotNull HKUnit hertzUnit()
        Hz API-Since: 13.0
      • hertzUnitWithMetricPrefix

        @NotNull
        public static @NotNull HKUnit hertzUnitWithMetricPrefix​(long prefix)
        Hz API-Since: 13.0
      • inchesOfMercuryUnit

        @NotNull
        public static @NotNull HKUnit inchesOfMercuryUnit()
        inHg API-Since: 14.0
      • voltUnit

        @NotNull
        public static @NotNull HKUnit voltUnit()
        V API-Since: 14.0
      • voltUnitWithMetricPrefix

        @NotNull
        public static @NotNull HKUnit voltUnitWithMetricPrefix​(long prefix)
        V API-Since: 14.0
      • degreeAngleUnit

        @NotNull
        public static @NotNull HKUnit degreeAngleUnit()
        deg API-Since: 16.0
      • diopterUnit

        @NotNull
        public static @NotNull HKUnit diopterUnit()
        D API-Since: 16.0
      • prismDiopterUnit

        @NotNull
        public static @NotNull HKUnit prismDiopterUnit()
        pD API-Since: 16.0
      • radianAngleUnit

        @NotNull
        public static @NotNull HKUnit radianAngleUnit()
        rad API-Since: 16.0
      • radianAngleUnitWithMetricPrefix

        @NotNull
        public static @NotNull HKUnit radianAngleUnitWithMetricPrefix​(long prefix)
        rad API-Since: 16.0
      • wattUnit

        @NotNull
        public static @NotNull HKUnit wattUnit()
        W API-Since: 16.0
      • wattUnitWithMetricPrefix

        @NotNull
        public static @NotNull HKUnit wattUnitWithMetricPrefix​(long prefix)
        W API-Since: 16.0
      • luxUnit

        @NotNull
        public static @NotNull HKUnit luxUnit()
        lx API-Since: 17.0
      • luxUnitWithMetricPrefix

        @NotNull
        public static @NotNull HKUnit luxUnitWithMetricPrefix​(long prefix)
        lx API-Since: 17.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.