public final class CategoryOther extends SensorBase
SensorBase and describes sensors in the other category (a category other
than motion, environment, orientation, and light) on hardware devices.
This class describes the sensor types in the other category, such as the Hall effect,
magnet bracket, and pressure detection sensors. It also provides the method for constructing a
CategoryOther instance.
SensorBaseSystemCapability.Sensors#SENSOR| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
SENSOR_TYPE_GRIP_DETECTOR |
An integer representing the grip detection sensor type.
|
static int |
SENSOR_TYPE_HALL |
An integer representing the Hall effect sensor type.
|
static int |
SENSOR_TYPE_MAGNET_BRACKET |
An integer representing the magnet bracket sensor type.
|
static int |
SENSOR_TYPE_PRESSURE_DETECTOR |
An integer representing the pressure detection sensor type.
|
static String |
STRING_SENSOR_TYPE_GRIP_DETECTOR |
A string of characters describing the grip detection sensor type.
|
static String |
STRING_SENSOR_TYPE_HALL |
A string of characters describing the Hall effect sensor type.
|
static String |
STRING_SENSOR_TYPE_MAGNET_BRACKET |
A string of characters describing the magnet bracket sensor type.
|
static String |
STRING_SENSOR_TYPE_PRESSURE_DETECTOR |
A string of characters describing the pressure detection sensor type.
|
| 构造器 | 说明 |
|---|---|
CategoryOther(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
CategoryOther 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_GRIP_DETECTOR
public static final int SENSOR_TYPE_HALL
public static final int SENSOR_TYPE_MAGNET_BRACKET
public static final int SENSOR_TYPE_PRESSURE_DETECTOR
public static final String STRING_SENSOR_TYPE_GRIP_DETECTOR
public static final String STRING_SENSOR_TYPE_HALL
public static final String STRING_SENSOR_TYPE_MAGNET_BRACKET
public CategoryOther(int sensorId,
String name,
String vendor,
int version,
float upperRange,
float resolution,
int flags,
int cacheMaxCount,
long minInterval,
long maxInterval)
CategoryOther 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.