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

Called to notify when a new MIDI device has been added

open Unit

Called to notify when a MIDI device has been removed

open Unit

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 MidiDeviceInfo for 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 MidiDeviceInfo for 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 MidiDeviceStatus for the changed device