Added in API level 23

PortInfo

class PortInfo
kotlin.Any
   ↳ android.media.midi.MidiDeviceInfo.PortInfo

Contains information about an input or output port.

Summary

Constants
static Int

Port type for input ports

static Int

Port type for output ports

Public methods
String!

Returns the name of the port, or empty string if the port has no name

Int

Returns the port number of the port

Int

Returns the port type of the port (either TYPE_INPUT or TYPE_OUTPUT)

Constants

TYPE_INPUT

Added in API level 23
static val TYPE_INPUT: Int

Port type for input ports

Value: 1

TYPE_OUTPUT

Added in API level 23
static val TYPE_OUTPUT: Int

Port type for output ports

Value: 2

Public methods

getName

Added in API level 23
fun getName(): String!

Returns the name of the port, or empty string if the port has no name

Return
String! the port name

getPortNumber

Added in API level 23
fun getPortNumber(): Int

Returns the port number of the port

Return
Int the port number

getType

Added in API level 23
fun getType(): Int

Returns the port type of the port (either TYPE_INPUT or TYPE_OUTPUT)

Return
Int the port type