Android APIs
public static class

MidiManager.DeviceCallback

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

Class Overview

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
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MidiManager.DeviceCallback ()

Added in API level 23

Public Methods

public void onDeviceAdded (MidiDeviceInfo device)

Added in API level 23

Called to notify when a new MIDI device has been added

Parameters
device a MidiDeviceInfo for the newly added device

public void onDeviceRemoved (MidiDeviceInfo device)

Added in API level 23

Called to notify when a MIDI device has been removed

Parameters
device a MidiDeviceInfo for the removed device

public void onDeviceStatusChanged (MidiDeviceStatus status)

Added in API level 23

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

Parameters
status a MidiDeviceStatus for the changed device