public interface PrinterHtmlListener
PrinterHtmlListener interface provides callback methods for printer HTML operations.| Modifier and Type | Field and Description |
|---|---|
static int |
BITMAP_ERROR |
static int |
BITMAP_SUCCESS |
static int |
DEVICE_NOT_OPEN |
static int |
PRINT_ERROR |
static int |
PRINT_SUCCESS |
| Modifier and Type | Method and Description |
|---|---|
void |
onFinishPrinting(int errorCode)
Callback method invoked upon the completion of printing.
|
void |
onGet(android.graphics.Bitmap bitmap,
int errorCode)
Callback method invoked when a bitmap is retrieved or when an error occurs during retrieval.
|
static final int PRINT_ERROR
static final int PRINT_SUCCESS
static final int BITMAP_ERROR
static final int BITMAP_SUCCESS
static final int DEVICE_NOT_OPEN
void onGet(android.graphics.Bitmap bitmap,
int errorCode)
bitmap - The retrieved bitmap, or null if retrieval failed.errorCode - The error code indicating the result of the bitmap retrieval operation.
It can be one of BITMAP_ERROR, BITMAP_SUCCESS, DEVICE_NOT_OPEN.void onFinishPrinting(int errorCode)
errorCode - The error code indicating the result of the printing operation.
It can be one of PRINT_ERROR, PRINT_SUCCESS, DEVICE_NOT_OPEN.