InputManager.RegisterInputDeviceListener Method

Definition

Registers an input device listener to receive notifications about when input devices are added, removed or changed.

[Android.Runtime.Register("registerInputDeviceListener", "(Landroid/hardware/input/InputManager$InputDeviceListener;Landroid/os/Handler;)V", "")]
public void RegisterInputDeviceListener (Android.Hardware.Input.InputManager.IInputDeviceListener? listener, Android.OS.Handler? handler);
[<Android.Runtime.Register("registerInputDeviceListener", "(Landroid/hardware/input/InputManager$InputDeviceListener;Landroid/os/Handler;)V", "")>]
member this.RegisterInputDeviceListener : Android.Hardware.Input.InputManager.IInputDeviceListener * Android.OS.Handler -> unit

Parameters

listener
InputManager.IInputDeviceListener

The listener to register.

handler
Handler

The handler on which the listener should be invoked, or null if the listener should be invoked on the calling thread's looper.

Attributes

Remarks

Java documentation for android.hardware.input.InputManager.registerInputDeviceListener(android.hardware.input.InputDeviceListener, 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

See also

  • <xref:Android.Hardware.Input.InputManager.UnregisterInputDeviceListener(.IInputDeviceListener)>