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 RegisterListener(ISensorEventListener, Sensor, SensorDelay). 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 | An initial event can be reported when the sensor is activated or a listener registers. Subsequent events are reported when the value changes. Event delivery rate can be limited by setting an appropriate value for the rate parameter of RegisterListener(ISensorEventListener, Sensor, SensorDelay). 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 using 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(ISensorEventListener, Sensor, SensorDelay) 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.