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! |
getName() Returns the name of the port, or empty string if the port has no name |
Int |
Returns the port number of the port |
Int |
getType() Returns the port type of the port (either |
Constants
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 |