Added in API level 23

MidiSender


abstract class MidiSender
kotlin.Any
   ↳ android.media.midi.MidiSender

Interface provided by a device to allow attaching MidiReceivers to a MIDI device.

Summary

Public constructors

Public methods
open Unit
connect(receiver: MidiReceiver!)

Connects a MidiReceiver to the sender

open Unit

Disconnects a MidiReceiver from the sender

abstract Unit
onConnect(receiver: MidiReceiver!)

Called to connect a MidiReceiver to the sender

abstract Unit

Called to disconnect a MidiReceiver from the sender

Public constructors

MidiSender

MidiSender()

Public methods

connect

Added in API level 23
open fun connect(receiver: MidiReceiver!): Unit

Connects a MidiReceiver to the sender

Parameters
receiver MidiReceiver!: the receiver to connect

disconnect

Added in API level 23
open fun disconnect(receiver: MidiReceiver!): Unit

Disconnects a MidiReceiver from the sender

Parameters
receiver MidiReceiver!: the receiver to disconnect

onConnect

Added in API level 23
abstract fun onConnect(receiver: MidiReceiver!): Unit

Called to connect a MidiReceiver to the sender

Parameters
receiver MidiReceiver!: the receiver to connect

onDisconnect

Added in API level 23
abstract fun onDisconnect(receiver: MidiReceiver!): Unit

Called to disconnect a MidiReceiver from the sender

Parameters
receiver MidiReceiver!: the receiver to disconnect