public class XprinterService.MyBinder extends android.os.Binder implements IMyBinder
Constructor and Description |
---|
XprinterService.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, unlinkToDeath
public void connectNetPort(java.lang.String ethernetIP, int ethernetPort, UiExecute execute)
connectNetPort
in interface IMyBinder
ethernetIP
- Printer IP addressethernetPort
- printer ethernet portpublic void connectBtPort(java.lang.String bluetoothID, UiExecute execute)
connectBtPort
in interface IMyBinder
bluetoothID
- printer bluetooth IDpublic void connectUsbPort(android.content.Context context, java.lang.String usbPathName, UiExecute execute)
connectUsbPort
in interface IMyBinder
context
- contextusbPathName
- printer usbidpublic void disconnectCurrentPort(UiExecute execute)
disconnectCurrentPort
in interface IMyBinder
public void write(byte[] data, UiExecute execute)
public void writeDataByYouself(UiExecute execute, ProcessData processData)
writeDataByYouself
in interface IMyBinder
execute
- 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 IMyBinder
public RoundQueue<byte[]> readBuffer()
readBuffer
in interface IMyBinder