OrientationSensorImplementation 类

定义

API 的具体实现 IOrientationSensor

public ref class OrientationSensorImplementation : Microsoft::Maui::Devices::Sensors::IOrientationSensor
public class OrientationSensorImplementation : Microsoft.Maui.Devices.Sensors.IOrientationSensor
type OrientationSensorImplementation = class
    interface IOrientationSensor
Public Class OrientationSensorImplementation
Implements IOrientationSensor
继承
OrientationSensorImplementation
实现

构造函数

OrientationSensorImplementation()

API 的具体实现 IOrientationSensor

属性

IsMonitoring

获取一个值,该值指示方向传感器是否正在主动监视。

IsSupported

获取一个值,该值指示此设备上是否支持读取方向传感器。

方法

Start(SensorSpeed)

开始监视方向的更改。

Stop()

停止监视方向的更改。

事件

ReadingChanged

在方向读取更改时发生。

适用于