Skip to content

Most visited

Recently visited

navigation

MidiManager.DeviceCallback

public static class MidiManager.DeviceCallback
extends Object

java.lang.Object
   ↳ android.media.midi.MidiManager.DeviceCallback


Callback class used for clients to receive MIDI device added and removed notifications

Summary

Public constructors

MidiManager.DeviceCallback()

Public methods

void onDeviceAdded(MidiDeviceInfo device)

Called to notify when a new MIDI device has been added

void onDeviceRemoved(MidiDeviceInfo device)

Called to notify when a MIDI device has been removed

void onDeviceStatusChanged(MidiDeviceStatus status)

Called to notify when the status of a MIDI device has changed

Inherited methods

From class java.lang.Object

Public constructors

MidiManager.DeviceCallback

added in API level 23
MidiManager.DeviceCallback ()

Public methods

onDeviceAdded

added in API level 23
void onDeviceAdded (MidiDeviceInfo device)

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
void onDeviceRemoved (MidiDeviceInfo device)

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
void onDeviceStatusChanged (MidiDeviceStatus status)

Called to notify when the status of a MIDI device has changed

Parameters
status MidiDeviceStatus: a MidiDeviceStatus for the changed device
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.