Skip to content

PrinterStatus

A class for printer status.

Overview

You use this object to know your printer status.

Properties

getRawData

A raw data of your printer status.

Declaration

public PrinterStatusRawData getRawData();

Return Value

See PrinterStatusRawData.

getModel

A printer model indicated in statusBytes.

Declaration

public PrinterModel getModel();

Return Value

See PrinterModel.

getErrorCode

A printer error state indicated in statusBytes.

Declaration

public ErrorCode getErrorCode();

Return Value

See ErrorCode.

getBatteryStatus

A printer battery state indicated in statusBytes. If the model has no battery status, it is null.

Declaration

@Nullable public PrinterBatteryStatus getBatteryStatus();

Return Value

See PrinterBatteryStatus.

getMediaInfo

A media information in the printer indicated in statusBytes. If the model has no media information, it is null.

Declaration

@Nullable public MediaInfo getMediaInfo();

Return Value

See MediaInfo.

Types

ErrorCode

Declaration

public enum ErrorCode {
    NoError,
    NoPaper,
    CoverOpen,
    Busy,
    PaperJam,
    HighVoltageAdapter,
    BatteryEmpty,
    BatteryTrouble,
    TubeNotDetected,
    UnsupportedCharger,
    IncompatibleOptionalEquipment,
    SystemError,
    AnotherError,
};