LightSensorReading クラス

定義

周囲光センサーの読み取り値を表します。

public ref class LightSensorReading sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class LightSensorReading final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class LightSensorReading
Public NotInheritable Class LightSensorReading
継承
Object Platform::Object IInspectable LightSensorReading
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

このオブジェクトは、GetCurrentReading メソッドを呼び出すとアクセスされます。イベント コールバック メソッドで LightSensorReadingChangedEventArgs オブジェクトの Reading プロパティを取得するとアクセスされます。

バージョン履歴

Windows のバージョン SDK バージョン 追加された値
1709 16299 PerformanceCount
1709 16299 Properties

プロパティ

IlluminanceInLux

ルクス単位の照度レベルを取得します。

PerformanceCount

読み取りに関連付けられているパフォーマンス数を取得します。 これにより、読み取りをシステム上の他のデバイスやプロセスと同期させることができます。

Properties

センサーによって報告されるデータ プロパティを取得します。

Timestamp

センサーが読み取りを報告した時刻を取得します。

適用対象