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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin