接口 PrinterFinder.SearchPrinterResultListener

  • 所有已知实现类:
    PrinterConnectActivity
    封闭类:
    PrinterFinder

    public static interface PrinterFinder.SearchPrinterResultListener
    扫描打印机设备的回调接口
    • 方法详细资料

      • 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()
        搜索完成