Sensor

Class of android.hardware · Sensor.java · Android's reference

public final class Sensor

A sensor of the device (Off in docs/platforms/android-apps/interfaces.md: the device reports none, so none is made).

Fields

public static final int TYPE_ACCELEROMETER = 1 source
public static final int TYPE_MAGNETIC_FIELD = 2 source
public static final int TYPE_ORIENTATION = 3 source
public static final int TYPE_GYROSCOPE = 4 source
public static final int TYPE_LIGHT = 5 source
public static final int TYPE_PRESSURE = 6 source
public static final int TYPE_PROXIMITY = 8 source
public static final int TYPE_GRAVITY = 9 source
public static final int TYPE_LINEAR_ACCELERATION = 10 source
public static final int TYPE_ROTATION_VECTOR = 11 source
public static final int TYPE_RELATIVE_HUMIDITY = 12 source
public static final int TYPE_AMBIENT_TEMPERATURE = 13 source
public static final int TYPE_MAGNETIC_FIELD_UNCALIBRATED = 14 source
public static final int TYPE_GAME_ROTATION_VECTOR = 15 source
public static final int TYPE_GYROSCOPE_UNCALIBRATED = 16 source
public static final int TYPE_SIGNIFICANT_MOTION = 17 source
public static final int TYPE_STEP_DETECTOR = 18 source
public static final int TYPE_STEP_COUNTER = 19 source
public static final int TYPE_GEOMAGNETIC_ROTATION_VECTOR = 20 source
public static final int TYPE_ALL = -1 source

Methods

public int getType() source
public String getName() source
public String getVendor() source
public int getVersion() source
public float getMaximumRange() source
public float getResolution() source
public float getPower() source
public int getMinDelay() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.