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

Commit b09f678b authored by Robert Wu's avatar Robert Wu
Browse files

MIDI: Add callback docs for MIDI 2.0

Adding docs for registerDeviceCallback() fo MIDI 2.0

Bug: 302603478
Test: presubmit
Change-Id: I1bab4912315cf11aaa2858b1985a241ec9378325
parent 7a3bf546
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -451,6 +451,14 @@ For a MidiDeviceInfo, you can query the defaultProtocol.</p>
int defaultProtocol = info.getDefaultProtocol();
</pre>

<p>To register for callbacks when MIDI 2.0 devices are added or removed, use
MidiManager.TRANSPORT_UNIVERSAL_MIDI_PACKETS as the transport.</p>

<pre class=prettyprint>
midiManager.registerDeviceCallback(
        MidiManager.TRANSPORT_UNIVERSAL_MIDI_PACKETS, executor, callback);
</pre>

<h1 id=creating_a_midi_2_0_virtual_device_service>Creating a MIDI 2.0 Virtual Device Service</h1>