Sdílet prostřednictvím


MidiManager.OpenDevice Method

Definition

Opens a MIDI device for reading and writing.

[Android.Runtime.Register("openDevice", "(Landroid/media/midi/MidiDeviceInfo;Landroid/media/midi/MidiManager$OnDeviceOpenedListener;Landroid/os/Handler;)V", "", ApiSince=23)]
public void OpenDevice (Android.Media.Midi.MidiDeviceInfo? deviceInfo, Android.Media.Midi.MidiManager.IOnDeviceOpenedListener? listener, Android.OS.Handler? handler);
[<Android.Runtime.Register("openDevice", "(Landroid/media/midi/MidiDeviceInfo;Landroid/media/midi/MidiManager$OnDeviceOpenedListener;Landroid/os/Handler;)V", "", ApiSince=23)>]
member this.OpenDevice : Android.Media.Midi.MidiDeviceInfo * Android.Media.Midi.MidiManager.IOnDeviceOpenedListener * Android.OS.Handler -> unit

Parameters

deviceInfo
MidiDeviceInfo

a android.media.midi.MidiDeviceInfo to open

listener
MidiManager.IOnDeviceOpenedListener

a MidiManager.OnDeviceOpenedListener to be called to receive the result

handler
Handler

the 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.

Attributes

Remarks

Java documentation for android.media.midi.MidiManager.openDevice(android.media.midi.MidiDeviceInfo, android.media.midi.OnDeviceOpenedListener, android.os.Handler).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to