VLDWeight
@interface VLDWeight : VLDRecord
Measurements associated with a user’s weight and body mass.
-
The value of the measured quantity in kg
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) NSNumber *weight;
Swift
var weight: NSNumber? { get set }
-
The value of the measured quantity in cm
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) NSNumber *height;
Swift
var height: NSNumber? { get set }
-
The value of the measured quantity in kg
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) NSNumber *freeMass;
Swift
var freeMass: NSNumber? { get set }
-
The value of the measured quantity
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) NSNumber *fatPercent;
Swift
var fatPercent: NSNumber? { get set }
-
The value of the measured quantity in kg
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) NSNumber *massWeight;
Swift
var massWeight: NSNumber? { get set }
-
The value of the measured quantity
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) NSNumber *bmi;
Swift
var bmi: NSNumber? { get set }
-
The weight value of the record converted to the specified unit.
Declaration
Objective-C
- (NSNumber *_Nullable)weightWithUnit:(VLDWeightUnit)unit;
Swift
func weight(with unit: VLDWeightUnit) -> NSNumber?
Parameters
unit
the weight unit to retrieve the weight value in.
-
Set the weight value of the record after converting from the specified unit to kg.
Declaration
Objective-C
- (void)setWeight:(NSNumber *_Nonnull)weight withUnit:(VLDWeightUnit)unit;
Swift
func setWeight(_ weight: NSNumber, with unit: VLDWeightUnit)
Parameters
weight
the weight value to store in the record.
unit
the weight unit that the accompanying weight value is currently in.