java.lang.Object | |
↳ | android.media.midi.MidiManager |
This class is the public application interface to the MIDI service.
You can obtain an instance of this class by calling
Context.getSystemService()
.
MidiManager manager = (MidiManager) getSystemService(Context.MIDI_SERVICE);
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MidiManager.DeviceCallback | Callback class used for clients to receive MIDI device added and removed notifications | ||||||||||
MidiManager.OnDeviceOpenedListener |
Listener class used for receiving the results of openDevice(MidiDeviceInfo, MidiManager.OnDeviceOpenedListener, Handler) and
openBluetoothDevice(BluetoothDevice, MidiManager.OnDeviceOpenedListener, Handler)
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the list of all connected MIDI devices.
| |||||||||||
Opens a Bluetooth MIDI device for reading and writing.
| |||||||||||
Opens a MIDI device for reading and writing.
| |||||||||||
Registers a callback to receive notifications when MIDI devices are added and removed.
| |||||||||||
Unregisters a
MidiManager.DeviceCallback .
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Gets the list of all connected MIDI devices.
Opens a Bluetooth MIDI device for reading and writing.
bluetoothDevice | a BluetoothDevice to open as a MIDI device |
---|---|
listener | a MidiManager.OnDeviceOpenedListener to be called to receive the
result |
handler | the Handler that will be used for delivering
the result. If handler is null, then the thread used for the
listener is unspecified.
|
Opens a MIDI device for reading and writing.
deviceInfo | a MidiDeviceInfo to open |
---|---|
listener | a MidiManager.OnDeviceOpenedListener to be called
to receive the result |
handler | the Handler that will be used for delivering
the result. If handler is null, then the thread used for the
listener is unspecified.
|
Registers a callback to receive notifications when MIDI devices are added and removed.
callback | a MidiManager.DeviceCallback for MIDI device notifications |
---|---|
handler | The Handler that will be used for delivering the
device notifications. If handler is null, then the thread used for the
callback is unspecified.
|
Unregisters a MidiManager.DeviceCallback
.
callback | a MidiManager.DeviceCallback to unregister
|
---|