This package provides basic operations for sensors, including obtaining all sensors in a sensor category, a type of sensors in the sensor category, and the first sensor of a specific type, setting or releasing the sensor data callback, and querying the minimum sampling interval of a sensor.
| 类 | 说明 |
|---|---|
| CategoryBodyAgent |
Inherits from
SensorAgent and manages body sensors on hardware devices. |
| CategoryEnvironmentAgent |
Inherits from
SensorAgent and manages environment sensors on hardware devices. |
| CategoryLightAgent |
Inherits from
SensorAgent and manages light sensors on hardware devices. |
| CategoryMotionAgent |
Inherits from
SensorAgent and manages motion sensors on hardware devices. |
| CategoryOrientationAgent |
Inherits from
SensorAgent and manages orientation sensors on hardware devices. |
| CategoryOtherAgent |
Inherits from
SensorAgent and manages sensors in the other category (a category other
than motion, environment, orientation, and light) on hardware devices. |
| SensorAgent<S extends SensorBase,D extends SensorData<S>,L extends ISensorDataCallback<D,S>> |
An abstract base class that manages sensors on hardware devices.
|