Added in API level 23

MidiConnection


class MidiConnection : Closeable
kotlin.Any
   ↳ android.media.midi.MidiDevice.MidiConnection

This class represents a connection between the output port of one device and the input port of another. Created by connectPorts. Close this object to terminate the connection.

Summary

Public methods
open Unit

Protected methods
open Unit

Public methods

close

Added in API level 23
open fun close(): Unit
Exceptions
java.lang.Exception if this resource cannot be closed
java.io.IOException if an I/O error occurs

Protected methods

finalize

Added in API level 23
protected open fun finalize(): Unit
Exceptions
java.lang.Throwable the Exception raised by this method