Added in API level 37
Summary:
Methods
| Inherited Methods
SerialPortResponse
public
final
class
SerialPortResponse
extends Object
| java.lang.Object | |
| ↳ | android.hardware.serial.SerialPortResponse |
Result of opening a serial port.
Summary
Public methods | |
|---|---|
ParcelFileDescriptor
|
getFileDescriptor()
The file descriptor obtained by opening the device node of the serial port. |
SerialPort
|
getPort()
The serial port for which this response is. |
Inherited methods | |
|---|---|
Public methods
getFileDescriptor
Added in API level 37
public ParcelFileDescriptor getFileDescriptor ()
The file descriptor obtained by opening the device node of the serial port.
The client of the API is responsible for closing the file descriptor after use.
| Returns | |
|---|---|
ParcelFileDescriptor |
This value cannot be null. |
getPort
Added in API level 37
public SerialPort getPort ()
The serial port for which this response is.
| Returns | |
|---|---|
SerialPort |
This value cannot be null. |