ISensorEventListener2.OnFlushCompleted(Sensor) Method

Definition

Called after flush() is completed.

[Android.Runtime.Register("onFlushCompleted", "(Landroid/hardware/Sensor;)V", "GetOnFlushCompleted_Landroid_hardware_Sensor_Handler:Android.Hardware.ISensorEventListener2Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnFlushCompleted (Android.Hardware.Sensor? sensor);
[<Android.Runtime.Register("onFlushCompleted", "(Landroid/hardware/Sensor;)V", "GetOnFlushCompleted_Landroid_hardware_Sensor_Handler:Android.Hardware.ISensorEventListener2Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnFlushCompleted : Android.Hardware.Sensor -> unit

Parameters

sensor
Sensor

The android.hardware.Sensor Sensor on which flush was called.

Attributes

Remarks

Called after flush() is completed. All the events in the batch at the point when the flush was called have been delivered to the applications registered for those sensor events. In android.os.Build.VERSION_CODES#KITKAT, applications may receive flush complete events even if some other application has called flush() on the same sensor. Starting with android.os.Build.VERSION_CODES#LOLLIPOP, flush Complete events are sent ONLY to the application that has explicitly called flush(). If the hardware FIFO is flushed due to some other application calling flush(), flush complete event is not delivered to this application.

Java documentation for android.hardware.SensorEventListener2.onFlushCompleted(android.hardware.Sensor).

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