Package apple.healthkit
Class HKUnit
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.healthkit.HKUnit
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSSecureCoding,NSObject
public class HKUnit extends NSObject implements NSSecureCoding, NSCopying
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHKUnit(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()static HKUnitalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static java.lang.ObjectatmosphereUnit()atmstatic booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static java.lang.ObjectcalorieUnit()static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static java.lang.ObjectcentimeterOfWaterUnit()cmAqstatic NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()java.lang.ObjectcopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)static java.lang.ObjectcountUnit()countstatic java.lang.ObjectcupImperialUnit()cup_impstatic java.lang.ObjectcupUSUnit()cup_usstatic java.lang.ObjectdayUnit()dstatic java.lang.StringdebugDescription_static()static java.lang.ObjectdecibelAWeightedSoundPressureLevelUnit()dBASPLstatic java.lang.ObjectdecibelHearingLevelUnit()dBHLstatic java.lang.ObjectdegreeCelsiusUnit()degCstatic java.lang.ObjectdegreeFahrenheitUnit()degFstatic java.lang.Stringdescription_static()voidencodeWithCoder(NSCoder coder)static longenergyFormatterUnitFromUnit(HKUnit unit)static java.lang.ObjectfluidOunceImperialUnit()fl_oz_impstatic java.lang.ObjectfluidOunceUSUnit()fl_oz_usstatic java.lang.ObjectfootUnit()ftstatic java.lang.ObjectgramUnit()gstatic java.lang.ObjectgramUnitWithMetricPrefix(long prefix)gstatic longhash_static()static java.lang.ObjecthertzUnit()Hzstatic java.lang.ObjecthertzUnitWithMetricPrefix(long prefix)Hzstatic java.lang.ObjecthourUnit()hrstatic java.lang.ObjectinchesOfMercuryUnit()inHgstatic java.lang.ObjectinchUnit()inHKUnitinit()HKUnitinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERstatic NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static java.lang.ObjectinternationalUnit()IUbooleanisNull()static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static java.lang.ObjectjouleUnit()Jstatic java.lang.ObjectjouleUnitWithMetricPrefix(long prefix)Jstatic java.lang.ObjectkelvinUnit()Kstatic NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.ObjectkilocalorieUnit()1 kcal = 4184.0 Jstatic java.lang.ObjectlargeCalorieUnit()1 Cal = 4184.0 Jstatic longlengthFormatterUnitFromUnit(HKUnit unit)static java.lang.ObjectliterUnit()Lstatic java.lang.ObjectliterUnitWithMetricPrefix(long prefix)Lstatic longmassFormatterUnitFromUnit(HKUnit unit)static java.lang.ObjectmeterUnit()mstatic java.lang.ObjectmeterUnitWithMetricPrefix(long prefix)mstatic java.lang.ObjectmileUnit()mistatic java.lang.ObjectmillimeterOfMercuryUnit()mmHgstatic java.lang.ObjectminuteUnit()minstatic java.lang.ObjectmoleUnitWithMetricPrefixMolarMass(long prefix, double gramsPerMole)molstatic java.lang.ObjectmoleUnitWithMolarMass(double gramsPerMole)molstatic java.lang.Objectnew_objc()static java.lang.ObjectounceUnit()ozstatic java.lang.ObjectpascalUnit()Pastatic java.lang.ObjectpascalUnitWithMetricPrefix(long prefix)Pastatic java.lang.ObjectpercentUnit()% (0.0 - 1.0)static java.lang.ObjectpintImperialUnit()pt_impstatic java.lang.ObjectpintUSUnit()pt_usstatic java.lang.ObjectpoundUnit()lbHKUnitreciprocalUnit()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)static java.lang.ObjectsecondUnit()sstatic java.lang.ObjectsecondUnitWithMetricPrefix(long prefix)sstatic voidsetVersion_static(long aVersion)static java.lang.ObjectsiemenUnit()Sstatic java.lang.ObjectsiemenUnitWithMetricPrefix(long prefix)Sstatic java.lang.ObjectsmallCalorieUnit()1 cal = 4.1840 Jstatic java.lang.ObjectstoneUnit()ststatic org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()HKUnitunitDividedByUnit(HKUnit unit)static HKUnitunitFromEnergyFormatterUnit(long energyFormatterUnit)static HKUnitunitFromLengthFormatterUnit(long lengthFormatterUnit)static HKUnitunitFromMassFormatterUnit(long massFormatterUnit)The following methods convert between HKUnit and Foundation formatter units for mass, length and energy.static HKUnitunitFromString(java.lang.String string)HKUnitunitMultipliedByUnit(HKUnit unit)HKUnitunitRaisedToPower(long power)java.lang.StringunitString()Returns a unique string representation for the unit that could be used with +unitFromString:static longversion_static()static java.lang.ObjectvoltUnit()Vstatic java.lang.ObjectvoltUnitWithMetricPrefix(long prefix)Vstatic java.lang.ObjectyardUnit()yd-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static HKUnit alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
atmosphereUnit
public static java.lang.Object atmosphereUnit()
atm
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
calorieUnit
public static java.lang.Object calorieUnit()
-
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)
-
centimeterOfWaterUnit
public static java.lang.Object centimeterOfWaterUnit()
cmAq
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
countUnit
public static java.lang.Object countUnit()
count
-
cupImperialUnit
public static java.lang.Object cupImperialUnit()
cup_imp
-
cupUSUnit
public static java.lang.Object cupUSUnit()
cup_us
-
dayUnit
public static java.lang.Object dayUnit()
d
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
degreeCelsiusUnit
public static java.lang.Object degreeCelsiusUnit()
degC
-
degreeFahrenheitUnit
public static java.lang.Object degreeFahrenheitUnit()
degF
-
description_static
public static java.lang.String description_static()
-
energyFormatterUnitFromUnit
public static long energyFormatterUnitFromUnit(HKUnit unit)
-
fluidOunceImperialUnit
public static java.lang.Object fluidOunceImperialUnit()
fl_oz_imp
-
fluidOunceUSUnit
public static java.lang.Object fluidOunceUSUnit()
fl_oz_us
-
footUnit
public static java.lang.Object footUnit()
ft
-
gramUnit
public static java.lang.Object gramUnit()
g
-
gramUnitWithMetricPrefix
public static java.lang.Object gramUnitWithMetricPrefix(long prefix)
g
-
hash_static
public static long hash_static()
-
hourUnit
public static java.lang.Object hourUnit()
hr
-
inchUnit
public static java.lang.Object inchUnit()
in
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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
public static java.lang.Object jouleUnit()
J
-
jouleUnitWithMetricPrefix
public static java.lang.Object jouleUnitWithMetricPrefix(long prefix)
J
-
kelvinUnit
public static java.lang.Object kelvinUnit()
K
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
kilocalorieUnit
public static java.lang.Object kilocalorieUnit()
1 kcal = 4184.0 J
-
lengthFormatterUnitFromUnit
public static long lengthFormatterUnitFromUnit(HKUnit unit)
-
literUnit
public static java.lang.Object literUnit()
L
-
literUnitWithMetricPrefix
public static java.lang.Object literUnitWithMetricPrefix(long prefix)
L
-
massFormatterUnitFromUnit
public static long massFormatterUnitFromUnit(HKUnit unit)
-
meterUnit
public static java.lang.Object meterUnit()
m
-
meterUnitWithMetricPrefix
public static java.lang.Object meterUnitWithMetricPrefix(long prefix)
m
-
mileUnit
public static java.lang.Object mileUnit()
mi
-
millimeterOfMercuryUnit
public static java.lang.Object millimeterOfMercuryUnit()
mmHg
-
minuteUnit
public static java.lang.Object minuteUnit()
min
-
moleUnitWithMetricPrefixMolarMass
public static java.lang.Object moleUnitWithMetricPrefixMolarMass(long prefix, double gramsPerMole)mol
-
moleUnitWithMolarMass
public static java.lang.Object moleUnitWithMolarMass(double gramsPerMole)
mol
-
new_objc
public static java.lang.Object new_objc()
-
ounceUnit
public static java.lang.Object ounceUnit()
oz
-
pascalUnit
public static java.lang.Object pascalUnit()
Pa
-
pascalUnitWithMetricPrefix
public static java.lang.Object pascalUnitWithMetricPrefix(long prefix)
Pa
-
percentUnit
public static java.lang.Object percentUnit()
% (0.0 - 1.0)
-
pintImperialUnit
public static java.lang.Object pintImperialUnit()
pt_imp
-
pintUSUnit
public static java.lang.Object pintUSUnit()
pt_us
-
poundUnit
public static java.lang.Object 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
public static java.lang.Object secondUnit()
s
-
secondUnitWithMetricPrefix
public static java.lang.Object secondUnitWithMetricPrefix(long prefix)
s
-
setVersion_static
public static void setVersion_static(long aVersion)
-
siemenUnit
public static java.lang.Object siemenUnit()
S
-
siemenUnitWithMetricPrefix
public static java.lang.Object siemenUnitWithMetricPrefix(long prefix)
S
-
stoneUnit
public static java.lang.Object 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(java.lang.String string)
-
version_static
public static long version_static()
-
yardUnit
public static java.lang.Object yardUnit()
yd
-
copyWithZone
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
copyWithZonein interfaceNSCopying
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
initWithCoder
public HKUnit initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
isNull
public boolean isNull()
-
reciprocalUnit
public HKUnit reciprocalUnit()
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis 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:
_supportsSecureCodingin interfaceNSSecureCoding
-
unitRaisedToPower
public HKUnit unitRaisedToPower(long power)
-
unitString
public java.lang.String unitString()
Returns a unique string representation for the unit that could be used with +unitFromString:
-
internationalUnit
public static java.lang.Object internationalUnit()
IU
-
largeCalorieUnit
public static java.lang.Object largeCalorieUnit()
1 Cal = 4184.0 J
-
smallCalorieUnit
public static java.lang.Object smallCalorieUnit()
1 cal = 4.1840 J
-
decibelAWeightedSoundPressureLevelUnit
public static java.lang.Object decibelAWeightedSoundPressureLevelUnit()
dBASPL
-
decibelHearingLevelUnit
public static java.lang.Object decibelHearingLevelUnit()
dBHL
-
hertzUnit
public static java.lang.Object hertzUnit()
Hz
-
hertzUnitWithMetricPrefix
public static java.lang.Object hertzUnitWithMetricPrefix(long prefix)
Hz
-
inchesOfMercuryUnit
public static java.lang.Object inchesOfMercuryUnit()
inHg
-
voltUnit
public static java.lang.Object voltUnit()
V
-
voltUnitWithMetricPrefix
public static java.lang.Object voltUnitWithMetricPrefix(long prefix)
V
-
-