Partager via


SensorEvent.FirstEventAfterDiscontinuity Property

Definition

Set to true when this is the first sensor event after a discontinuity.

[Android.Runtime.Register("firstEventAfterDiscontinuity", ApiSince=33)]
public bool FirstEventAfterDiscontinuity { get; set; }
[<Android.Runtime.Register("firstEventAfterDiscontinuity", ApiSince=33)>]
member this.FirstEventAfterDiscontinuity : bool with get, set

Property Value

Attributes

Remarks

Set to true when this is the first sensor event after a discontinuity.

The exact meaning of discontinuity depends on the sensor type. For android.hardware.Sensor#TYPE_HEAD_TRACKER Sensor.TYPE_HEAD_TRACKER, this means that the reference frame has suddenly and significantly changed, for example if the head tracking device was removed then put back.

Note that this concept is either not relevant to or not supported by most sensor types, android.hardware.Sensor#TYPE_HEAD_TRACKER Sensor.TYPE_HEAD_TRACKER being the notable exception.

Java documentation for android.hardware.SensorEvent.firstEventAfterDiscontinuity.

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