MidiManager.RegisterDeviceCallback(MidiManager+DeviceCallback, Handler) Method

Definition

Registers a callback to receive notifications when MIDI devices are added and removed.

[Android.Runtime.Register("registerDeviceCallback", "(Landroid/media/midi/MidiManager$DeviceCallback;Landroid/os/Handler;)V", "", ApiSince=23)]
public void RegisterDeviceCallback (Android.Media.Midi.MidiManager.DeviceCallback? callback, Android.OS.Handler? handler);
[<Android.Runtime.Register("registerDeviceCallback", "(Landroid/media/midi/MidiManager$DeviceCallback;Landroid/os/Handler;)V", "", ApiSince=23)>]
member this.RegisterDeviceCallback : Android.Media.Midi.MidiManager.DeviceCallback * Android.OS.Handler -> unit

Parameters

callback
MidiManager.DeviceCallback

a DeviceCallback for MIDI device notifications

handler
Handler

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

Attributes

Remarks

Java documentation for android.media.midi.MidiManager.registerDeviceCallback(android.media.midi.DeviceCallback, 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