4.15. IConnectionCallback

Notify the result when connecting / disconnecting

4.15.1. ConnectResult

Connection result constants.

  • Declaration

    enum ConnectResult {
        Success,
        Failure,
        AlreadyConnected
    }
    
  • Value

    Name Contents
    Success Success
    Failure Failure
    AlreadyConnected Already connected

4.15.2. onConnected

Tells the connection result.

  • Declaration

    void onConnected(ConnectResult result);
    
  • Parameter

    Name Contents Type
    result Connection result ConnectResult
  • Return value

    None

  • Examples

    @Override
    public void onConnected(ConnectResult result) {
        Log.d("PrinterExtFragment", "onConnected " + result);
    
        ...
    }
    

4.15.3. onDisconnected

Tells the disconnect completed.

  • Declaration

    void onDisconnected();
    
  • Parameter

    None

  • Return value

    None

  • Examples

    @Override
    public void onDisconnected() {
        Log.d("PrinterExtFragment", "onDisconnected");
    
        ...
    }