public class PosPrinterService.MyBinder extends android.os.Binder implements IMyBinder
| Constructor and Description |
|---|
PosPrinterService.MyBinder() |
| 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 usbPathName,
UiExecute execute) |
void |
disconnectCurrentPort(UiExecute execute) |
RoundQueue<byte[]> |
readBuffer() |
void |
write(byte[] data,
UiExecute execute) |
void |
writeDataByYouself(UiExecute execute,
ProcessData processData) |
attachInterface, clearCallingIdentity, dump, dump, dumpAsync, finalize, flushPendingCommands, getCallingPid, getCallingUid, getCallingUserHandle, getInterfaceDescriptor, isBinderAlive, joinThreadPool, linkToDeath, onTransact, pingBinder, queryLocalInterface, restoreCallingIdentity, transact, unlinkToDeathpublic void connectNetPort(java.lang.String ethernetIP,
int ethernetPort,
UiExecute execute)
connectNetPort in interface IMyBinderethernetIP - Printer IP addressethernetPort - printer ethernet portpublic void connectBtPort(java.lang.String bluetoothID,
UiExecute execute)
connectBtPort in interface IMyBinderbluetoothID - printer bluetooth IDpublic void connectUsbPort(android.content.Context context,
java.lang.String usbPathName,
UiExecute execute)
connectUsbPort in interface IMyBindercontext - contextusbPathName - printer usbidpublic void disconnectCurrentPort(UiExecute execute)
disconnectCurrentPort in interface IMyBinderpublic void write(byte[] data,
UiExecute execute)
public void writeDataByYouself(UiExecute execute, ProcessData processData)
writeDataByYouself in interface IMyBinderexecute - execute interface£¬the method is performed in the UI threadprocessData - interface£¬You can rewrite the processing method of data to be transmitted,public void acceptdatafromprinter(UiExecute execute)
acceptdatafromprinter in interface IMyBinderpublic RoundQueue<byte[]> readBuffer()
readBuffer in interface IMyBinder