Most visited

Recently visited

Added in API level 24

SensorAdditionalInfo

public class SensorAdditionalInfo
extends Object

java.lang.Object
   ↳ android.hardware.SensorAdditionalInfo


This class represents a Sensor additional information frame, which is reported through listener callback onSensorAdditionalInfo.

See also:

Summary

Constants

int TYPE_FRAME_BEGIN

Mark the beginning of a set of additional info frames.

int TYPE_FRAME_END

Mark the end of a set of additional info frames.

int TYPE_INTERNAL_TEMPERATURE

Internal temperature.

int TYPE_SAMPLING

Sampling parameter.

int TYPE_SENSOR_PLACEMENT

Sensor placement.

int TYPE_UNTRACKED_DELAY

Untracked delay.

int TYPE_VEC3_CALIBRATION

Vector calibration parameter.

Fields

public final float[] floatValues

Additional info payload data represented in float values.

public final int[] intValues

Additional info payload data represented in int values.

public final Sensor sensor

The sensor that generated this event.

public final int serial

Sequence number of frame for a certain type.

public final int type

Type of this additional info frame.

Inherited methods

From class java.lang.Object

Constants

TYPE_FRAME_BEGIN

Added in API level 24
int TYPE_FRAME_BEGIN

Mark the beginning of a set of additional info frames.

Constant Value: 0 (0x00000000)

TYPE_FRAME_END

Added in API level 24
int TYPE_FRAME_END

Mark the end of a set of additional info frames.

Constant Value: 1 (0x00000001)

TYPE_INTERNAL_TEMPERATURE

Added in API level 24
int TYPE_INTERNAL_TEMPERATURE

Internal temperature. Sensor hardware device internal temperature. Payload: floatValues[0]: internal temperature in Celsius.

Constant Value: 65537 (0x00010001)

TYPE_SAMPLING

Added in API level 24
int TYPE_SAMPLING

Sampling parameter. Describes the raw sample period and estimated jitter of sample time in terms of standard deviation. Payload: floatValues[0]: raw sample period in seconds. floatValues[1]: standard deviation of sampling period.

Constant Value: 65540 (0x00010004)

TYPE_SENSOR_PLACEMENT

Added in API level 24
int TYPE_SENSOR_PLACEMENT

Sensor placement. Describes location and installation angle of the sensor device. Payload: floatValues[0..11]: First 3 rows of homogeneous matrix in row major order that describes the location and orientation of the sensor. Origin of reference will be the mobile device geometric sensor. Reference frame is defined as the same as Android sensor frame.

Constant Value: 65539 (0x00010003)

TYPE_UNTRACKED_DELAY

Added in API level 24
int TYPE_UNTRACKED_DELAY

Untracked delay. Delays that are introduced by data processing, such as filtering, which is not taken into account by sensor timestamps. Payload: floatValues[0]: delay estimation in seconds floatValues[1]: delay estimation standard deviation

Constant Value: 65536 (0x00010000)

TYPE_VEC3_CALIBRATION

Added in API level 24
int TYPE_VEC3_CALIBRATION

Vector calibration parameter. Calibration applied to a sensor with 3 elements vector output, such as accelerometer, gyro, etc. Payload: floatValues[0..11]: First 3 rows of a homogeneous matrix in row major order that captures any linear transformation, including rotation, scaling, shear, shift.

Constant Value: 65538 (0x00010002)

Fields

floatValues

Added in API level 24
float[] floatValues

Additional info payload data represented in float values. Depending on the type of information, this may be null.

intValues

Added in API level 24
int[] intValues

Additional info payload data represented in int values. Depending on the type of information, this may be null.

sensor

Added in API level 24
Sensor sensor

The sensor that generated this event. See SensorManager for details.

serial

Added in API level 24
int serial

Sequence number of frame for a certain type.

type

Added in API level 24
int type

Type of this additional info frame.

Hooray!