Added in API level 23
    MidiOutputPort
class MidiOutputPort : MidiSender, Closeable
| kotlin.Any | ||
| ↳ | android.media.midi.MidiSender | |
| ↳ | android.media.midi.MidiOutputPort | |
This class is used for receiving data from a port on a MIDI device
Summary
| Public methods | |
|---|---|
| Unit | 
            close() | 
        
| Int | 
            
             Returns the port number of this port  | 
        
| Unit | 
            onConnect(receiver: MidiReceiver!) | 
        
| Unit | 
            onDisconnect(receiver: MidiReceiver!) | 
        
| Protected methods | |
|---|---|
| Unit | 
            finalize() | 
        
| Inherited functions | |
|---|---|
Public methods
close
Added in API level 23
      fun close(): Unit
| Exceptions | |
|---|---|
java.lang.Exception | 
            if this resource cannot be closed | 
java.io.IOException | 
            if an I/O error occurs | 
getPortNumber
Added in API level 23
      fun getPortNumber(): Int
Returns the port number of this port
| Return | |
|---|---|
Int | 
            the port's port number | 
onConnect
Added in API level 23
      fun onConnect(receiver: MidiReceiver!): Unit
| Parameters | |
|---|---|
receiver | 
            MidiReceiver!: the receiver to connect | 
onDisconnect
Added in API level 23
      fun onDisconnect(receiver: MidiReceiver!): Unit
| Parameters | |
|---|---|
receiver | 
            MidiReceiver!: the receiver to disconnect | 
Protected methods
finalize
Added in API level 23
      protected fun finalize(): Unit
| Exceptions | |
|---|---|
java.lang.Throwable | 
            the Exception raised by this method |