public final class CategoryOrientation extends SensorBase
SensorBase and describes orientation sensors on hardware devices.
This class describes the sensor types in the orientation category, such as the orientation
type sensors, rotation vector sensors, and screen rotation sensors. It also provides the
method for constructing a CategoryOrientation instance.
SensorBaseSystemCapability.Sensors#SENSOR| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
SENSOR_TYPE_6DOF |
An integer representing the 6DOF sensor type.
|
static int |
SENSOR_TYPE_DEVICE_ORIENTATION |
An integer representing the device orientation sensor type.
|
static int |
SENSOR_TYPE_GAME_ROTATION_VECTOR |
An integer representing the game rotation vector sensor type.
|
static int |
SENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR |
An integer representing the geomagnetic rotation vector sensor type.
|
static int |
SENSOR_TYPE_ORIENTATION |
An integer representing the orientation sensor type.
|
static int |
SENSOR_TYPE_ROTATION_VECTOR |
An integer representing the rotation vector sensor type.
|
static int |
SENSOR_TYPE_SCREEN_ROTATION |
An integer representing the screen rotation sensor type.
|
static String |
STRING_SENSOR_TYPE_6DOF |
A string of characters describing the 6DOF sensor type.
|
static String |
STRING_SENSOR_TYPE_DEVICE_ORIENTATION |
A string of characters describing the device orientation sensor type.
|
static String |
STRING_SENSOR_TYPE_GAME_ROTATION_VECTOR |
A string of characters describing the game rotation vector sensor type.
|
static String |
STRING_SENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR |
A string of characters describing the geomagnetic rotation vector sensor type.
|
static String |
STRING_SENSOR_TYPE_ORIENTATION |
A string of characters describing the orientation sensor type.
|
static String |
STRING_SENSOR_TYPE_ROTATION_VECTOR |
A string of characters describing the rotation vector sensor type.
|
static String |
STRING_SENSOR_TYPE_SCREEN_ROTATION |
A string of characters describing the screen rotation sensor type.
|
| 构造器 | 说明 |
|---|---|
CategoryOrientation(int sensorId,
String name,
String vendor,
int version,
float upperRange,
float resolution,
int flags,
int cacheMaxCount,
long minInterval,
long maxInterval) |
A constructor used to create a
CategoryOrientation instance. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCacheMaxCount, getFlags, getMaxInterval, getMinInterval, getName, getResolution, getSensorId, getUpperRange, getVendor, getVersionpublic static final int SENSOR_TYPE_6DOF
public static final int SENSOR_TYPE_DEVICE_ORIENTATION
public static final int SENSOR_TYPE_GAME_ROTATION_VECTOR
public static final int SENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR
public static final int SENSOR_TYPE_ORIENTATION
public static final int SENSOR_TYPE_ROTATION_VECTOR
public static final int SENSOR_TYPE_SCREEN_ROTATION
public static final String STRING_SENSOR_TYPE_6DOF
public static final String STRING_SENSOR_TYPE_DEVICE_ORIENTATION
public static final String STRING_SENSOR_TYPE_GAME_ROTATION_VECTOR
public static final String STRING_SENSOR_TYPE_GEOMAGNETIC_ROTATION_VECTOR
public static final String STRING_SENSOR_TYPE_ORIENTATION
public static final String STRING_SENSOR_TYPE_ROTATION_VECTOR
public CategoryOrientation(int sensorId,
String name,
String vendor,
int version,
float upperRange,
float resolution,
int flags,
int cacheMaxCount,
long minInterval,
long maxInterval)
CategoryOrientation instance.sensorId - Indicates the ID of the sensor.name - Indicates the name of the sensor.vendor - Indicates the manufacturer of the sensor.version - Indicates the version of the sensor.upperRange - Indicates the maximum measurement range of the sensor.resolution - Indicates the resolution of the sensor.flags - Indicates the flags of the sensor.cacheMaxCount - Indicates the maximum number of hardware FIFO elements supported by
the sensor.minInterval - Indicates the minimum sampling interval of the sensor, in nanoseconds.maxInterval - Indicates the maximum sampling interval of the sensor, in nanoseconds.