Added in API level 23
    DeviceCallback
class DeviceCallback
| kotlin.Any | |
| ↳ | android.media.midi.MidiManager.DeviceCallback | 
Callback class used for clients to receive MIDI device added and removed notifications
Summary
| Public constructors | |
|---|---|
| Public methods | |
|---|---|
| open Unit | onDeviceAdded(device: MidiDeviceInfo!)Called to notify when a new MIDI device has been added | 
| open Unit | onDeviceRemoved(device: MidiDeviceInfo!)Called to notify when a MIDI device has been removed | 
| open Unit | onDeviceStatusChanged(status: MidiDeviceStatus!)Called to notify when the status of a MIDI device has changed | 
Public constructors
DeviceCallback
DeviceCallback()
Public methods
onDeviceAdded
Added in API level 23
      open fun onDeviceAdded(device: MidiDeviceInfo!): Unit
Called to notify when a new MIDI device has been added
| Parameters | |
|---|---|
| device | MidiDeviceInfo!: a MidiDeviceInfofor the newly added device | 
onDeviceRemoved
Added in API level 23
      open fun onDeviceRemoved(device: MidiDeviceInfo!): Unit
Called to notify when a MIDI device has been removed
| Parameters | |
|---|---|
| device | MidiDeviceInfo!: a MidiDeviceInfofor the removed device | 
onDeviceStatusChanged
Added in API level 23
      open fun onDeviceStatusChanged(status: MidiDeviceStatus!): Unit
Called to notify when the status of a MIDI device has changed
| Parameters | |
|---|---|
| status | MidiDeviceStatus!: a MidiDeviceStatusfor the changed device | 
