OrientationListener.OnSensorChanged(SensorType, Single[]) Method

Definition

Caution

deprecated

[Android.Runtime.Register("onSensorChanged", "(I[F)V", "GetOnSensorChanged_IarrayFHandler")]
[System.Obsolete("deprecated")]
public virtual void OnSensorChanged (Android.Hardware.SensorType sensor, float[]? values);
[<Android.Runtime.Register("onSensorChanged", "(I[F)V", "GetOnSensorChanged_IarrayFHandler")>]
[<System.Obsolete("deprecated")>]
abstract member OnSensorChanged : Android.Hardware.SensorType * single[] -> unit
override this.OnSensorChanged : Android.Hardware.SensorType * single[] -> unit

Parameters

sensor
SensorType

The ID of the sensor being monitored

values
Single[]

The new values for the sensor.

Implements

Attributes

Remarks

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