Share via


IOrientationSensor 介面

定義

OrientationSensor API 可讓您在三維空間中監視裝置的方向。

public interface class IOrientationSensor
public interface IOrientationSensor
type IOrientationSensor = interface
Public Interface IOrientationSensor
衍生

屬性

IsMonitoring

取得值,指出是否正在主動監視方向感測器。

IsSupported

取得值,指出此裝置是否支援讀取方向感測器。

方法

Start(SensorSpeed)

開始監視方向的變更。

Stop()

停止監視方向的變更。

事件

ReadingChanged

發生於方向讀取變更時。

適用於