Condividi tramite


TriggerEvent.Values Property

Definition

The length and contents of the #values values array depends on which android.hardware.Sensor sensor type is being monitored (see also SensorEvent for a definition of the coordinate system used).

[Android.Runtime.Register("values")]
public System.Collections.Generic.IList<float>? Values { get; set; }
[<Android.Runtime.Register("values")>]
member this.Values : System.Collections.Generic.IList<single> with get, set

Property Value

Attributes

Remarks

The length and contents of the #values values array depends on which android.hardware.Sensor sensor type is being monitored (see also SensorEvent for a definition of the coordinate system used).

<h4> Sensor#TYPE_SIGNIFICANT_MOTION</h4> The value field is of length 1. value[0] = 1.0 when the sensor triggers. 1.0 is the only allowed value.

Java documentation for android.hardware.TriggerEvent.values.

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