ReportingMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enumerates values returned by several types.
public enum ReportingMode
type ReportingMode =
- Inheritance
-
ReportingMode
Fields
| Name | Value | Description |
|---|---|---|
| Continuous | 0 | Events are reported at a constant rate which is set by the rate parameter of SensorManager.registerListener(SensorEventListener,Sensor,int). Note: If other applications are requesting a higher rate, the sensor data might be delivered at faster rates than requested. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| OnChange | 1 | Events are reported only when the value changes. Event delivery rate can be limited by setting appropriate value for rate parameter of SensorManager.registerListener(SensorEventListener,Sensor,int) Note: If other applications are requesting a higher rate, the sensor data might be delivered at faster rates than requested. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| OneShot | 2 | Events are reported in one-shot mode. Upon detection of an event, the sensor deactivates itself and then sends a single event. Sensors of this reporting mode must be registered to using SensorManager.requestTriggerSensor(TriggerEventListener,Sensor). Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| SpecialTrigger | 3 | Events are reported as described in the description of the sensor. The rate passed to registerListener might not have an impact on the rate of event delivery. See the sensor definition for more information on when and how frequently the events are reported. For example, step detectors report events when a step is detected. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.