com.datecs.printer

## Interface ProtocolAdapter.PrinterListener

- Enclosing class:
    ProtocolAdapter

      public static interface ProtocolAdapter.PrinterListener

  Interface definition for a callbacks to notify for printer event.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onBatteryStateChanged(boolean lowBattery)` This method is invoke when printer battery state is changed.
    `void` | `onPaperStateChanged(boolean noPaper)` 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 noPaper)

      This method is invoke when paper state is changes.
      Parameters:
        `noPaper` - indicates whether printer is out of paper or not.