com.gprinter.io

类 UsbPort



  • public class UsbPort
    extends GpPort
    • 字段详细资料

      • ACTION_USB_DEVICE_ATTACHED

        public static final java.lang.String ACTION_USB_DEVICE_ATTACHED
        另请参阅:
        常量字段值
    • 构造器详细资料

      • UsbPort

        public UsbPort(Context context,
                       int id,
                       java.lang.String name,
                       Handler handler)
        Constructor. Prepares a new BTPrinter session.
        参数:
        context - The UI Activity Context
        handler - A Handler to send messages back to the UI Activity
    • 方法详细资料

      • connect

        public void connect()
        Start the ConnectThread to initiate a connection to a remote device.
      • connected

        public void connected(UsbDeviceConnection connection,
                              UsbInterface intf)
        Start the ConnectedThread to begin managing a Bluetooth connection
      • stop

        public void stop()
        Stop all threads
      • writeDataImmediately

        public GpCom.ERROR_CODE writeDataImmediately(java.util.Vector<java.lang.Bytedata)
文档更新时间: 2020-04-27 10:34   作者:Gainscha佳博