Udostępnij za pośrednictwem


MidiManager.OpenBluetoothDevice Method

Definition

Opens a Bluetooth MIDI device for reading and writing.

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

Parameters

bluetoothDevice
BluetoothDevice

a android.bluetooth.BluetoothDevice to open as a MIDI device

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.openBluetoothDevice(android.bluetooth.BluetoothDevice, 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