public final class CategoryLight extends SensorBase
SensorBase and describes light sensors on hardware devices.
This class describes the sensor types in the light category, such as the proximity, ambient
light, and color temperature sensors. It also provides the method for constructing a
CategoryLight instance.
SensorBaseSystemCapability.Sensors#SENSOR| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
SENSOR_TYPE_AMBIENT_LIGHT |
An integer representing the ambient light sensor type.
|
static int |
SENSOR_TYPE_COLOR_RGB |
An integer representing the RGB color sensor type.
|
static int |
SENSOR_TYPE_COLOR_TEMPERATURE |
An integer representing the color temperature sensor type.
|
static int |
SENSOR_TYPE_COLOR_XYZ |
An integer representing the XYZ color sensor type.
|
static int |
SENSOR_TYPE_PROXIMITY |
An integer representing the proximity sensor type.
|
static int |
SENSOR_TYPE_TOF |
An integer representing the TOF sensor type.
|
static String |
STRING_SENSOR_TYPE_AMBIENT_LIGHT |
A string of characters describing the ambient light sensor type.
|
static String |
STRING_SENSOR_TYPE_COLOR_RGB |
A string of characters describing the RGB color sensor type.
|
static String |
STRING_SENSOR_TYPE_COLOR_TEMPERATURE |
A string of characters describing the color temperature sensor type.
|
static String |
STRING_SENSOR_TYPE_COLOR_XYZ |
A string of characters describing the XYZ color sensor type.
|
static String |
STRING_SENSOR_TYPE_PROXIMITY |
A string of characters describing the proximity sensor type.
|
static String |
STRING_SENSOR_TYPE_TOF |
A string of characters describing the TOF sensor type.
|
| 构造器 | 说明 |
|---|---|
CategoryLight(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
CategoryLight 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_AMBIENT_LIGHT
public static final int SENSOR_TYPE_COLOR_RGB
public static final int SENSOR_TYPE_COLOR_TEMPERATURE
public static final int SENSOR_TYPE_COLOR_XYZ
public static final int SENSOR_TYPE_PROXIMITY
public static final int SENSOR_TYPE_TOF
public static final String STRING_SENSOR_TYPE_AMBIENT_LIGHT
public static final String STRING_SENSOR_TYPE_COLOR_RGB
public static final String STRING_SENSOR_TYPE_COLOR_TEMPERATURE
public static final String STRING_SENSOR_TYPE_COLOR_XYZ
public static final String STRING_SENSOR_TYPE_PROXIMITY
public CategoryLight(int sensorId,
String name,
String vendor,
int version,
float upperRange,
float resolution,
int flags,
int cacheMaxCount,
long minInterval,
long maxInterval)
CategoryLight 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.