Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.datecs.api.printer
Interface ProtocolAdapter.PrinterListener

Enclosing class:
  ProtocolAdapter

    public static interface ProtocolAdapter.PrinterListener

Interface definition for a callbacks to notify for printer event.

Method Summary
`void` | `onBatteryStateChanged(boolean lowBattery)` This method is invoke when printer battery state is changed.
`void` | `onPaperStateChanged(boolean hasPaper)` This method is invoke when paper state is changes.
`void` | `onThermalHeadStateChanged(boolean overheated)` This method is invoke when printer thermal head state is changed.

Method Detail

### onBatteryStateChanged

    void onBatteryStateChanged(boolean lowBattery)

  This method is invoke when printer battery state is changed.

  Parameters:
    `lowBattery` - indicates whether the battery level is low or not.

### onThermalHeadStateChanged

    void onThermalHeadStateChanged(boolean overheated)

  This method is invoke when printer thermal head state is changed.

  Parameters:
    `overheated` - indicates whether the thermal head is overheated or not.

### onPaperStateChanged

    void onPaperStateChanged(boolean hasPaper)

  This method is invoke when paper state is changes.

  Parameters:
    `hasPaper` - indicates whether printer has paper or not.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD