SensorType 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.
Indicates the type of sensor.
public enum class SensorType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
enum class SensorType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
public enum SensorType
var value = Windows.Devices.Sensors.SensorType.accelerometer
Public Enum SensorType
- Inheritance
-
SensorType
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10586.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v2.0)
|
Fields
Accelerometer | 0 | An Accelerometer. |
ActivitySensor | 1 | An ActivitySensor. |
Barometer | 2 | A Barometer. |
Compass | 3 | A Compass. |
CustomSensor | 4 | A custom sensor. |
Gyroscope | 5 | A Gyrometer. |
Inclinometer | 7 | An Inclinometer. |
LightSensor | 8 | A LightSensor. |
OrientationSensor | 9 | |
Pedometer | 10 | A Pedometer. |
ProximitySensor | 6 | |
RelativeInclinometer | 11 | A relative Inclinometer. |
RelativeOrientationSensor | 12 | A relative OrientationSensor. |
SimpleOrientationSensor | 13 |
Applies to
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro