ISensorEventListener.OnSensorChanged(SensorEvent) 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 there is a new sensor event.
[Android.Runtime.Register("onSensorChanged", "(Landroid/hardware/SensorEvent;)V", "GetOnSensorChanged_Landroid_hardware_SensorEvent_Handler:Android.Hardware.ISensorEventListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnSensorChanged (Android.Hardware.SensorEvent? e);
[<Android.Runtime.Register("onSensorChanged", "(Landroid/hardware/SensorEvent;)V", "GetOnSensorChanged_Landroid_hardware_SensorEvent_Handler:Android.Hardware.ISensorEventListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnSensorChanged : Android.Hardware.SensorEvent -> unit
Parameters
the SensorEvent.
- Attributes
Remarks
Called when there is a new sensor event. Note that "on changed" is somewhat of a misnomer, as this will also be called if we have a new reading from a sensor with the exact same sensor values (but a newer timestamp).
See android.hardware.SensorManager SensorManager
for details on possible sensor types.
See also android.hardware.SensorEvent SensorEvent
.
<b>NOTE:</b> The application doesn't own the android.hardware.SensorEvent event
object passed as a parameter and therefore cannot hold on to it. The object may be part of an internal pool and may be reused by the framework.
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.