SensorType 列舉

定義

表示感應器的類型。

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
繼承
SensorType
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10586.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v2.0 引進)

欄位

Accelerometer 0

加速計

ActivitySensor 1

ActivitySensor

Barometer 2

條形計

Compass 3

指南針

CustomSensor 4

自訂感應器。

Gyroscope 5

陀螺儀

Inclinometer 7

傾角計

LightSensor 8

LightSensor

OrientationSensor 9

OrientationSensor

Pedometer 10

計計

ProximitySensor 6

ProximitySensor

RelativeInclinometer 11

相對 傾角計

RelativeOrientationSensor 12

相對 OrientationSensor

SimpleOrientationSensor 13

SimpleOrientationSensor

適用於