OrientationSensorImplementation 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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 |
在方向读取更改时发生。 |