接口 PrinterFinder.SearchPrinterResultListener
-
- 所有已知实现类:
PrinterConnectActivity
- 封闭类:
- PrinterFinder
public static interface PrinterFinder.SearchPrinterResultListener
扫描打印机设备的回调接口
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
onSearchBluetoothPrinter(android.bluetooth.BluetoothDevice bluetoothDevice, int rssi)
搜索到蓝牙设备void
onSearchCompleted()
搜索完成void
onSearchNetworkPrinter(java.lang.String mac, java.lang.String ip, java.lang.String gateway, java.lang.String netmask, int port)
搜索网络设备void
onSearchSerialPortPrinter(java.lang.String serialPortPath)
搜索到串口设备void
onSearchUsbPrinter(android.hardware.usb.UsbAccessory usbAccessory)
搜索到USB设备(配件模式)void
onSearchUsbPrinter(android.hardware.usb.UsbDevice usbDevice)
搜索到USB设备
-
-
-
方法详细资料
-
onSearchBluetoothPrinter
void onSearchBluetoothPrinter(android.bluetooth.BluetoothDevice bluetoothDevice, int rssi)
搜索到蓝牙设备- 参数:
bluetoothDevice
- 蓝牙设备rssi
- 信号强度
-
onSearchUsbPrinter
void onSearchUsbPrinter(android.hardware.usb.UsbDevice usbDevice)
搜索到USB设备- 参数:
usbDevice
- usb设备
-
onSearchUsbPrinter
void onSearchUsbPrinter(android.hardware.usb.UsbAccessory usbAccessory)
搜索到USB设备(配件模式)- 参数:
usbAccessory
- usb配件
-
onSearchNetworkPrinter
void onSearchNetworkPrinter(java.lang.String mac, java.lang.String ip, java.lang.String gateway, java.lang.String netmask, int port)
搜索网络设备- 参数:
mac
- MAC地址ip
- IP地址gateway
- 网关netmask
- 掩码port
- 端口
-
onSearchSerialPortPrinter
void onSearchSerialPortPrinter(java.lang.String serialPortPath)
搜索到串口设备- 参数:
serialPortPath
- 串口文件地址
-
onSearchCompleted
void onSearchCompleted()
搜索完成
-
-