Added in API level 37

SerialPortResponse


class SerialPortResponse
kotlin.Any
   ↳ android.hardware.serial.SerialPortResponse

Result of opening a serial port.

Summary

Public methods
ParcelFileDescriptor

The file descriptor obtained by opening the device node of the serial port.

SerialPort

The serial port for which this response is.

Public methods

getFileDescriptor

Added in API level 37
fun getFileDescriptor(): ParcelFileDescriptor

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.

Return
ParcelFileDescriptor This value cannot be null.

getPort

Added in API level 37
fun getPort(): SerialPort

The serial port for which this response is.

Return
SerialPort This value cannot be null.