Added in API level 37
SerialPortListener
public
interface
SerialPortListener
| android.hardware.serial.SerialPortListener |
Listener to monitor serial port connections and disconnections.
Summary
Public methods | |
|---|---|
abstract
void
|
onSerialPortConnected(SerialPort port)
Called when a supported serial port is connected. |
abstract
void
|
onSerialPortDisconnected(SerialPort port)
Called when a supported serial port is disconnected. |
Public methods
onSerialPortConnected
Added in API level 37
public abstract void onSerialPortConnected (SerialPort port)
Called when a supported serial port is connected.
| Parameters | |
|---|---|
port |
SerialPort: This value cannot be null. |
onSerialPortDisconnected
Added in API level 37
public abstract void onSerialPortDisconnected (SerialPort port)
Called when a supported serial port is disconnected.
| Parameters | |
|---|---|
port |
SerialPort: This value cannot be null. |