Most visited

Recently visited

Added in API level 23

MidiManager.DeviceCallback

public static class MidiManager.DeviceCallback
extends Object

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


回叫类用于客户端接收MIDI设备添加和删除通知

Summary

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

Public constructors

MidiManager.DeviceCallback

Added in API level 23
MidiManager.DeviceCallback ()

Public methods

onDeviceAdded

Added in API level 23
void onDeviceAdded (MidiDeviceInfo device)

打电话通知何时添加了新的MIDI设备

Parameters
device MidiDeviceInfo: a MidiDeviceInfo for the newly added device

onDeviceRemoved

Added in API level 23
void onDeviceRemoved (MidiDeviceInfo device)

被调用以通知MIDI设备何时被移除

Parameters
device MidiDeviceInfo: a MidiDeviceInfo for the removed device

onDeviceStatusChanged

Added in API level 23
void onDeviceStatusChanged (MidiDeviceStatus status)

被调用以通知MIDI设备的状态何时发生变化

Parameters
status MidiDeviceStatus: a MidiDeviceStatus for the changed device

Hooray!