com.gprinter.io

类 GpPort

  • java.lang.Object
    • com.gprinter.io.GpPort
    • 构造器概要

      构造器 
      构造器和说明
      GpPort() 
    • 方法概要

      所有方法 实例方法 具体方法 
      限定符和类型 方法和说明
      protected void closePortFailed()
      Indicate that the connection attempt failed and notify the UI Activity.
      protected void connectionFailed()
      Indicate that the connection attempt failed and notify the UI Activity.
      protected void connectionLost()
      Indicate that the connection was lost and notify the UI Activity.
      protected void connectionToPrinterFailed()
      Indicate that the connection attempt failed and notify the UI Activity.
      protected int getState()
      Return the current connection state.
      protected void invalidPrinter()
      Indicate that the connection was lost and notify the UI Activity.
      protected void setState(int state)
      Set the current state of the connection
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • mClosePort

        protected boolean mClosePort
      • mState

        protected int mState
      • mHandler

        protected Handler mHandler
      • mmBytesAvailable

        protected int mmBytesAvailable
      • mPrinterId

        protected int mPrinterId
    • 构造器详细资料

      • GpPort

        public GpPort()
    • 方法详细资料

      • setState

        protected void setState(int state)
        Set the current state of the connection
        参数:
        state - An integer defining the current connection state
      • getState

        protected int getState()
        Return the current connection state.
      • connectionFailed

        protected void connectionFailed()
        Indicate that the connection attempt failed and notify the UI Activity.
      • closePortFailed

        protected void closePortFailed()
        Indicate that the connection attempt failed and notify the UI Activity.
      • connectionLost

        protected void connectionLost()
        Indicate that the connection was lost and notify the UI Activity.
      • invalidPrinter

        protected void invalidPrinter()
        Indicate that the connection was lost and notify the UI Activity.
      • connectionToPrinterFailed

        protected void connectionToPrinterFailed()
        Indicate that the connection attempt failed and notify the UI Activity.
文档更新时间: 2020-04-27 10:14   作者:Gainscha佳博