다음을 통해 공유


OrientationSensor.GetDeviceSelector 메서드

정의

오버로드

GetDeviceSelector(SensorReadingType)

디바이스 선택기를 가져옵니다.

GetDeviceSelector(SensorReadingType, SensorOptimizationGoal)

디바이스 선택기를 가져옵니다.

GetDeviceSelector(SensorReadingType)

디바이스 선택기를 가져옵니다.

public:
 static Platform::String ^ GetDeviceSelector(SensorReadingType readingType);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelector")]
 static winrt::hstring GetDeviceSelector(SensorReadingType const& readingType);
[Windows.Foundation.Metadata.Overload("GetDeviceSelector")]
public static string GetDeviceSelector(SensorReadingType readingType);
function getDeviceSelector(readingType)
Public Shared Function GetDeviceSelector (readingType As SensorReadingType) As String

매개 변수

readingType
SensorReadingType

검색할 센서의 유형입니다.

반환

String

Platform::String

winrt::hstring

디바이스 선택기가 있는 경우 를 반환합니다. 그렇지 않으면 null입니다.

특성

Windows 요구 사항

디바이스 패밀리
Windows 10 Fall Creators Update (10.0.16299.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v5.0에서 도입되었습니다.)

적용 대상

GetDeviceSelector(SensorReadingType, SensorOptimizationGoal)

디바이스 선택기를 가져옵니다.

public:
 static Platform::String ^ GetDeviceSelector(SensorReadingType readingType, SensorOptimizationGoal optimizationGoal);
/// [Windows.Foundation.Metadata.Overload("GetDeviceSelectorWithSensorReadingTypeAndSensorOptimizationGoal")]
 static winrt::hstring GetDeviceSelector(SensorReadingType const& readingType, SensorOptimizationGoal const& optimizationGoal);
[Windows.Foundation.Metadata.Overload("GetDeviceSelectorWithSensorReadingTypeAndSensorOptimizationGoal")]
public static string GetDeviceSelector(SensorReadingType readingType, SensorOptimizationGoal optimizationGoal);
function getDeviceSelector(readingType, optimizationGoal)
Public Shared Function GetDeviceSelector (readingType As SensorReadingType, optimizationGoal As SensorOptimizationGoal) As String

매개 변수

readingType
SensorReadingType

검색할 센서의 유형입니다. Absolute SensorReadingType은 가속도계, 자이로모터 및 자력계를 사용하여 OrientationSensor를 반환하여 자기 북쪽과 관련된 방향을 결정합니다. Relative SensorReadingType은 가속도계 및 회전계만(자력계 없음)을 사용하여 OrientationSensor를 반환하며 센서가 처음 인스턴스화된 위치를 기준으로 측정합니다.

optimizationGoal
SensorOptimizationGoal

센서에 대한 최적화의 기본 설정을 나타냅니다. 이 필드는 Absolute SensorReadingType이 지정된 경우에만 사용됩니다. optimizationGoal of Precision은 가속도계, 회전계 및 자력계를 사용하여 OrientationSensor를 반환하여 자기 북쪽과 관련된 방향을 결정합니다. 이것은 회전계의 사용으로 인해 많은 전력을 사용할 가능성이 있습니다. 반면, PowerEfficiency의 optimizationGoal을 지정하면 가속도계 및 자력계만(회전계 없음)을 사용하여 OrientationSensor를 반환하여 일부 정확도의 비용으로 전력을 절약합니다(대부분의 경우 판독값은 여전히 상대적으로 정확함).

반환

String

Platform::String

winrt::hstring

디바이스 선택기가 있는 경우 를 반환합니다. 그렇지 않으면 null입니다.

특성

Windows 요구 사항

디바이스 패밀리
Windows 10 Fall Creators Update (10.0.16299.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v5.0에서 도입되었습니다.)

적용 대상