public interface IMyBinder
| Modifier and Type | Method and Description |
|---|---|
void |
acceptdatafromprinter(UiExecute execute) |
void |
connectBtPort(java.lang.String bluetoothID,
UiExecute execute) |
void |
connectNetPort(java.lang.String ethernetIP,
int ethernetPort,
UiExecute execute) |
void |
connectUsbPort(android.content.Context context,
java.lang.String usbID,
UiExecute execute) |
void |
disconnectCurrentPort(UiExecute execute) |
|
readBuffer() |
void |
write(byte[] data,
UiExecute execute) |
void |
writeDataByYouself(UiExecute execute,
ProcessData processData) |
void connectNetPort(java.lang.String ethernetIP,
int ethernetPort,
UiExecute execute)
UiExecute - execute interface£¬the method is performed in the UI threadethernetIP - Printer IP addressethernetPort - printer ethernet portvoid connectBtPort(java.lang.String bluetoothID,
UiExecute execute)
UiExecute - execute interface£¬the method is performed in the UI threadbluetoothID - printer bluetooth IDvoid connectUsbPort(android.content.Context context,
java.lang.String usbID,
UiExecute execute)
UiExecute - execute interface£¬the method is performed in the UI threadcontext - contextusbID - printer usbidvoid disconnectCurrentPort(UiExecute execute)
UiExecute - execute interface£¬the method is performed in the UI threadvoid acceptdatafromprinter(UiExecute execute)
data - byte[]readBuffer()
void write(byte[] data,
UiExecute execute)
data - byte[]void writeDataByYouself(UiExecute execute, ProcessData processData)
execute - execute interface£¬the method is performed in the UI threadprocessData - interface£¬You can rewrite the processing method of data to be transmitted,