SensorOptimizationGoal 枚举

定义

指示是否应针对传感器优化功率或精度。

public enum class SensorOptimizationGoal
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
enum class SensorOptimizationGoal
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
public enum SensorOptimizationGoal
var value = Windows.Devices.Sensors.SensorOptimizationGoal.precision
Public Enum SensorOptimizationGoal
继承
SensorOptimizationGoal
属性

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)

字段

PowerEfficiency 1

此传感器会根据可用的硬件将电源效率优先于精度。

Precision 0

此传感器将优先考虑精度,而优先于电源效率。

适用于