OrientationSensorImplementation.Start(SensorSpeed) 方法

定义

开始监视方向的更改。

public:
 virtual void Start(Microsoft::Maui::Devices::Sensors::SensorSpeed sensorSpeed);
public void Start (Microsoft.Maui.Devices.Sensors.SensorSpeed sensorSpeed);
abstract member Start : Microsoft.Maui.Devices.Sensors.SensorSpeed -> unit
override this.Start : Microsoft.Maui.Devices.Sensors.SensorSpeed -> unit
Public Sub Start (sensorSpeed As SensorSpeed)

参数

sensorSpeed
SensorSpeed

侦听更改的速度。

实现

注解

如果设备上不支持,将引发 FeatureNotSupportedException 。 如果 IsMonitoring 为 ,true将引发 InvalidOperationException

适用于