public interface PrinterBinder
限定符和类型 | 方法和说明 |
---|---|
void |
acceptdatafromprinter(java.lang.String ip,
TaskCallback callback)
接收数据
|
void |
checkLinkedState(java.lang.String ip,
TaskCallback callback)
检查连接
|
void |
clearBuffer(java.lang.String ip)
清除数据
|
void |
connectBtPort(java.lang.String bluetoothID,
TaskCallback callback)
连接蓝牙
|
void |
connectNetPort(java.lang.String ip,
TaskCallback callback)
连接网络
|
void |
connectUsbPort(Context context,
java.lang.String usbPathName,
TaskCallback callback)
连接usb
|
void |
disconnectAll(TaskCallback callback)
断开所有连接
|
void |
disconnectCurrentPort(java.lang.String ip,
TaskCallback callback)
断开当前连接
|
boolean |
isConnect(java.lang.String ip)
当前连接状态
|
RoundQueue<byte[]> |
readBuffer(java.lang.String ip)
读取数据
|
void |
write(java.lang.String ip,
byte[] data,
TaskCallback callback)
写数据
|
void |
writeDataByYouself(java.lang.String ip,
TaskCallback callback,
ProcessData var2)
写数据
|
void connectBtPort(java.lang.String bluetoothID, TaskCallback callback)
bluetoothID
- execute
- void connectUsbPort(Context context, java.lang.String usbPathName, TaskCallback callback)
context
- usbPathName
- execute
- void connectNetPort(java.lang.String ip, TaskCallback callback)
ip
- execute
- void disconnectCurrentPort(java.lang.String ip, TaskCallback callback)
ip
- execute
- void disconnectAll(TaskCallback callback)
execute
- void acceptdatafromprinter(java.lang.String ip, TaskCallback callback)
ip
- execute
- RoundQueue<byte[]> readBuffer(java.lang.String ip)
ip
- void clearBuffer(java.lang.String ip)
ip
- void checkLinkedState(java.lang.String ip, TaskCallback callback)
ip
- execute
- void write(java.lang.String ip, byte[] data, TaskCallback callback)
ip
- data
- execute
- void writeDataByYouself(java.lang.String ip, TaskCallback callback, ProcessData var2)
ip
- execute
- var2
- boolean isConnect(java.lang.String ip)
ip
-