Share via


Accelerometer.ReadingTransform 속성

정의

센서 데이터에 적용해야 하는 변환을 가져오거나 설정합니다. 적용할 변환은 센서 데이터를 정렬할 디스플레이 방향과 연결됩니다.

public:
 property DisplayOrientations ReadingTransform { DisplayOrientations get(); void set(DisplayOrientations value); };
DisplayOrientations ReadingTransform();

void ReadingTransform(DisplayOrientations value);
public DisplayOrientations ReadingTransform { get; set; }
var displayOrientations = accelerometer.readingTransform;
accelerometer.readingTransform = displayOrientations;
Public Property ReadingTransform As DisplayOrientations

속성 값

센서 데이터를 정렬할 디스플레이 방향을 지정하는 DisplayOrientations 형식 값입니다.

설명

이 속성은 다음과 같은 향상된 기능을 제공합니다.

  • 가로 우선 디바이스와 세로 우선 디바이스의 센서 데이터의 차이는 더 이상 중요하지 않습니다.
  • 가로 우선 디바이스용으로 작성된 기존 센서 기반 앱을 세로 우선 디바이스로 쉽게 이식하고 그 반대의 경우도 마찬가지입니다.
  • 표시 방향 변경을 처리할 수 있습니다. 센서의 ReadingTransform을 현재 디스플레이 방향과 일치하도록 업데이트하여 센서 데이터를 현재 방향에 맞출 수 있습니다.
  • 센서 데이터를 현재 디스플레이 방향과 다른 디스플레이 방향에 맞출 수 있습니다.

적용 대상