/**@class android.media.midi.MidiManager @extends java.lang.Object This class is the public application interface to the MIDI service. */ var MidiManager = { /** Intent for starting BluetoothMidiService @hide */ BLUETOOTH_MIDI_SERVICE_INTENT : "android.media.midi.BluetoothMidiService", /** BluetoothMidiService package name @hide */ BLUETOOTH_MIDI_SERVICE_PACKAGE : "com.android.bluetoothmidiservice", /** BluetoothMidiService class name @hide */ BLUETOOTH_MIDI_SERVICE_CLASS : "com.android.bluetoothmidiservice.BluetoothMidiService", /**Registers a callback to receive notifications when MIDI devices are added and removed. The {@link android.media.midi.MidiManager.DeviceCallback#onDeviceStatusChanged} method will be called immediately for any devices that have open ports. This allows applications to know which input ports are already in use and, therefore, unavailable. Applications should call {@link #getDevices} before registering the callback to get a list of devices already added. @param {Object {MidiManager.DeviceCallback}} callback a {@link DeviceCallback} for MIDI device notifications @param {Object {Handler}} handler The {@link android.os.Handler Handler} that will be used for delivering the device notifications. If handler is null, then the thread used for the callback is unspecified. */ registerDeviceCallback : function( ) {}, /**Unregisters a {@link android.media.midi.MidiManager.DeviceCallback}. @param {Object {MidiManager.DeviceCallback}} callback a {@link DeviceCallback} to unregister */ unregisterDeviceCallback : function( ) {}, /**Gets the list of all connected MIDI devices. @return {Object {android.media.midi.MidiDeviceInfo}} an array of all MIDI devices */ getDevices : function( ) {}, /**Opens a MIDI device for reading and writing. @param {Object {MidiDeviceInfo}} deviceInfo a {@link android.media.midi.MidiDeviceInfo} to open @param {Object {MidiManager.OnDeviceOpenedListener}} listener a {@link MidiManager.OnDeviceOpenedListener} to be called to receive the result @param {Object {Handler}} handler the {@link android.os.Handler Handler} that will be used for delivering the result. If handler is null, then the thread used for the listener is unspecified. */ openDevice : function( ) {}, /**Opens a Bluetooth MIDI device for reading and writing. @param {Object {BluetoothDevice}} bluetoothDevice a {@link android.bluetooth.BluetoothDevice} to open as a MIDI device @param {Object {MidiManager.OnDeviceOpenedListener}} listener a {@link MidiManager.OnDeviceOpenedListener} to be called to receive the result @param {Object {Handler}} handler the {@link android.os.Handler Handler} that will be used for delivering the result. If handler is null, then the thread used for the listener is unspecified. */ openBluetoothDevice : function( ) {}, /** @hide */ createDeviceServer : function( ) {}, };