2.2.17 MeasurementUnit property
Syntax
int MeasurementUnit
Attribute
Read/Write
Description
Sets the measurement unit.
Value
CLS_UNIT_MILLI (0)
CLS_UNIT_INCH (1)
Setter method
int setMeasurementUnit (int measurementUnit)
The default value in the printer is "1."
Returns CLS_SUCCESS (0) on success. See
Getter method
int getMeasurementUnit ()
Returns the set value. If nothing has been set, it returns CLS_PROPERTY_DEFAULT(999999).
Example
int unit;
printer.setMeasurementUnit(LabelConst.CLS_UNIT_MILLI);
unit = printer.getMeasurementUnit();
CITIZEN Android Label Print SDK — Programming Manual
Description
Metric system
Inch system
"2.1 Return
34
value" for the error codes.