Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67b873d9 authored by Robert Wu's avatar Robert Wu
Browse files

MIDI: Update docs for openBluetoothDevice

Updating openBluetoothDevice docs.

Bug: 317238878
Test: presubmit
Flag: DOCS_ONLY
Change-Id: I7f65e78e26ca0af3deb60300fb8204c7a42c859f
parent c17c4f60
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -393,6 +393,16 @@ public final class MidiManager {

    /**
     * Opens a Bluetooth MIDI device for reading and writing.
     * Bluetooth MIDI devices are only available after openBluetoothDevice() is called.
     * Once that happens anywhere in the system, then the BLE-MIDI device will appear as just
     * another MidiDevice to other apps.
     *
     * If the device opened using openBluetoothDevice()  is closed, then it will no longer be
     * available. To other apps, it will appear as if the BLE MidiDevice had been unplugged.
     * If a MidiDevice is garbage collected then it will be closed automatically.
     * If you want the BLE-MIDI device to remain available you should keep the object alive.
     *
     * You may close the device with MidiDevice.close().
     *
     * @param bluetoothDevice a {@link android.bluetooth.BluetoothDevice} to open as a MIDI device
     * @param listener a {@link MidiManager.OnDeviceOpenedListener} to be called to receive the