Class HKQuantity

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class HKQuantity
extends NSObject
implements NSSecureCoding
  • Constructor Details

    • HKQuantity

      protected HKQuantity()
    • HKQuantity

      protected HKQuantity​(NSObject.Handle h, long handle)
    • HKQuantity

      protected HKQuantity​(NSObject.SkipInit skipInit)
    • HKQuantity

      public HKQuantity​(NSCoder coder)
  • Method Details

    • 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)
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)