SensorType 列挙型
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
センサーの種類を示します。
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 | |
Barometer | 2 | |
Compass | 3 | コンパス。 |
CustomSensor | 4 | カスタム センサー。 |
Gyroscope | 5 | |
Inclinometer | 7 | 傾斜計。 |
LightSensor | 8 | |
OrientationSensor | 9 | |
Pedometer | 10 | 歩数計。 |
ProximitySensor | 6 | |
RelativeInclinometer | 11 | 相対 傾斜計。 |
RelativeOrientationSensor | 12 | |
SimpleOrientationSensor | 13 |