Package org.robovm.apple.healthkit
Class HKQuantity
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.healthkit.HKQuantity
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class HKQuantity extends NSObject implements NSSecureCoding
- Since:
- Available in iOS 8.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HKQuantity.HKQuantityPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HKQuantity()
HKQuantity(NSCoder decoder)
protected
HKQuantity(NSObject.Handle h, long handle)
protected
HKQuantity(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NSComparisonResult
compare(HKQuantity quantity)
static HKQuantity
create(HKUnit unit, double value)
void
encode(NSCoder coder)
double
getDoubleValueForUnit(HKUnit unit)
protected long
init(NSCoder decoder)
boolean
isCompatibleWithUnit(HKUnit unit)
static boolean
supportsSecureCoding()
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
HKQuantity
protected HKQuantity()
-
HKQuantity
protected HKQuantity(NSObject.Handle h, long handle)
-
HKQuantity
protected HKQuantity(NSObject.SkipInit skipInit)
-
HKQuantity
public HKQuantity(NSCoder decoder)
-
-
Method Detail
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
isCompatibleWithUnit
public boolean isCompatibleWithUnit(HKUnit unit)
-
getDoubleValueForUnit
public double getDoubleValueForUnit(HKUnit unit)
-
compare
public NSComparisonResult compare(HKQuantity quantity)
-
create
public static HKQuantity create(HKUnit unit, double value)
-
init
protected long init(NSCoder decoder)
-
-