ISensorEventListener.OnAccuracyChanged(Sensor, SensorStatus) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when the accuracy of the registered sensor has changed.
[Android.Runtime.Register("onAccuracyChanged", "(Landroid/hardware/Sensor;I)V", "GetOnAccuracyChanged_Landroid_hardware_Sensor_IHandler:Android.Hardware.ISensorEventListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnAccuracyChanged (Android.Hardware.Sensor? sensor, Android.Hardware.SensorStatus accuracy);
[<Android.Runtime.Register("onAccuracyChanged", "(Landroid/hardware/Sensor;I)V", "GetOnAccuracyChanged_Landroid_hardware_Sensor_IHandler:Android.Hardware.ISensorEventListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnAccuracyChanged : Android.Hardware.Sensor * Android.Hardware.SensorStatus -> unit
Parameters
- sensor
- Sensor
- accuracy
- SensorStatus
The new accuracy of this sensor, one of
SensorManager.SENSOR_STATUS_*
- Attributes
Remarks
Called when the accuracy of the registered sensor has changed. Unlike onSensorChanged(), this is only called when this accuracy value changes.
See the SENSOR_STATUS_* constants in android.hardware.SensorManager SensorManager
for details.
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.