![Citizen CL-E300 Programming Manual Download Page 46](http://html1.mh-extra.com/html/citizen/cl-e300/cl-e300_programming-manual_2610002046.webp)
CITIZEN Android Label Print SDK
—
Programming Manual
46
2.2.29 LabelSensor property
Syntax
int LabelSensor
Attribute
Read/Write
Description
Sets the label sensor type.
Value
Description
CLS_SELSENSOR_NONE (0)
None.
This assumes that a continuous paper roll is used.
Therefore a valid length must be set in the
ContinuousMediaLength property
, returns CLS_E_ILLEGAL
(1101) otherwise.
CLS_SELSENSOR_SEETHROUGH (1)
Gap sensor.
To detect a gap between labels or a notch on tags.
CLS_SELSENSOR_REFLECT (2)
Reflect sensor.
Detect a black mark on the back side of the label.
Setter method
int setLabelSensor (int labelSensor)
Returns CLS_SUCCESS (0) on success. See "
" for the error codes.
Getter method
int getLabelSensor ()
Returns the set value. If nothing has been set, it returns CLS_PROPERTY_DEFAULT(999999).
Example
// Other than "CLS_SELSENSOR_NONE"
int labelSensor;
printer.setLabelSensor(LabelConst.CLS_SELSENSOR_SEETHROUGH);
labelSensor = printer.getLabelSensor();
// "CLS_SELSENSOR_NONE"
int labelSensor;
printer.setContinuousMediaLength(100);
printer.setLabelSensor(LabelConst.CLS_SELSENSOR_NONE);
labelSensor = printer.getLabelSensor();