Android.Hardware.SensorManager.RegisterListener Method
Enables batch mode for a sensor with the given rate and maxBatchReportLatency.

Syntax

[Android.Runtime.Register("registerListener", "(Landroid/hardware/SensorEventListener;Landroid/hardware/Sensor;IILandroid/os/Handler;)Z", "GetRegisterListener_Landroid_hardware_SensorEventListener_Landroid_hardware_Sensor_IILandroid_os_Handler_Handler")]
public virtual bool RegisterListener (ISensorEventListener listener, Sensor sensor, [Android.Runtime.GeneratedEnum] SensorDelay rateUs, int maxBatchReportLatencyUs, Android.OS.Handler handler)

See Also

SensorManager.RegisterListener(ISensorEventListener, Android.Hardware.Sensor, Android.Hardware.Sensor, Android.Hardware.Sensor)

Parameters

listener
A Android.Hardware.ISensorEventListener object that will receive the sensor events. If the application is interested in receiving flush complete notifications, it should register with Android.Hardware.ISensorEventListener instead.
sensor
The Android.Hardware.Sensor to register to.
rateUs
The desired delay between two consecutive events in microseconds. This is only a hint to the system. Events may be received faster or slower than the specified rate. Usually events are received faster. Can be one of SensorManager.SENSOR_DELAY_NORMAL, SensorManager.SENSOR_DELAY_UI, SensorManager.SENSOR_DELAY_GAME, SensorManager.SENSOR_DELAY_FASTEST or the delay in microseconds.
maxBatchReportLatencyUs
An event in the batch can be delayed by at most maxBatchReportLatency microseconds. More events can be batched if this value is large. If this is set to zero, batch mode is disabled and events are delivered in continuous mode as soon as they are available which is equivalent to calling SensorManager.RegisterListener(ISensorEventListener, Android.Hardware.Sensor, Android.Hardware.Sensor).
handler
The Android.OS.Handler the Android.Hardware.SensorEvent will be delivered to.

Returns

Documentation for this section has not yet been entered.

Remarks

Enables batch mode for a sensor with the given rate and maxBatchReportLatency.

[Android Documentation]

Requirements

Namespace: Android.Hardware
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1