public static class MidiManager.DeviceCallback
extends Object
java.lang.Object | |
↳ | android.media.midi.MidiManager.DeviceCallback |
回叫类用于客户端接收MIDI设备添加和删除通知
Public constructors |
|
---|---|
MidiManager.DeviceCallback() |
Public methods |
|
---|---|
void |
onDeviceAdded(MidiDeviceInfo device) 打电话通知何时添加了新的MIDI设备 |
void |
onDeviceRemoved(MidiDeviceInfo device) 被调用以通知MIDI设备何时被移除 |
void |
onDeviceStatusChanged(MidiDeviceStatus status) 被调用以通知MIDI设备的状态何时发生变化 |
Inherited methods |
|
---|---|
From class java.lang.Object
|
void onDeviceAdded (MidiDeviceInfo device)
打电话通知何时添加了新的MIDI设备
Parameters | |
---|---|
device |
MidiDeviceInfo : a MidiDeviceInfo for the newly added device |
void onDeviceRemoved (MidiDeviceInfo device)
被调用以通知MIDI设备何时被移除
Parameters | |
---|---|
device |
MidiDeviceInfo : a MidiDeviceInfo for the removed device |
void onDeviceStatusChanged (MidiDeviceStatus status)
被调用以通知MIDI设备的状态何时发生变化
Parameters | |
---|---|
status |
MidiDeviceStatus : a MidiDeviceStatus for the changed device |