SensorManager.Flush(ISensorEventListener) Method

Definition

Flushes the FIFO of all the sensors registered for this listener.

[Android.Runtime.Register("flush", "(Landroid/hardware/SensorEventListener;)Z", "GetFlush_Landroid_hardware_SensorEventListener_Handler")]
public virtual bool Flush (Android.Hardware.ISensorEventListener? listener);
[<Android.Runtime.Register("flush", "(Landroid/hardware/SensorEventListener;)Z", "GetFlush_Landroid_hardware_SensorEventListener_Handler")>]
abstract member Flush : Android.Hardware.ISensorEventListener -> bool
override this.Flush : Android.Hardware.ISensorEventListener -> bool

Parameters

listener
ISensorEventListener

A android.hardware.SensorEventListener SensorEventListener object which was previously used in a registerListener call.

Returns

Boolean

<code>true</code> if the flush is initiated successfully on all the sensors registered for this listener, false if no sensor is previously registered for this listener or flush on one of the sensors fails.

Attributes

Exceptions

when listener is null.

Remarks

Java documentation for android.hardware.SensorManager.flush(android.hardware.SensorEventListener).

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.SensorManager.RegisterListener(Android.Hardware.ISensorEventListener%2c+Android.Hardware.Sensor%2c+Android.Hardware.Sensor%2c+Android.Hardware.Sensor)>