MediaCaptureRelativePanelWatcher 클래스

정의

디스플레이Region과 연결된 패널을 모니터링하여 패널의 상대 위치가 변경될 때 앱이 알림을 받도록 합니다.

public ref class MediaCaptureRelativePanelWatcher sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 655360)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class MediaCaptureRelativePanelWatcher final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 655360)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class MediaCaptureRelativePanelWatcher : System.IDisposable
Public NotInheritable Class MediaCaptureRelativePanelWatcher
Implements IDisposable
상속
Object Platform::Object IInspectable MediaCaptureRelativePanelWatcher
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10, version 2004 (10.0.19041.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v10.0에서 도입되었습니다.)

설명

이 API는 런타임에 디스플레이 영역의 상대 위치가 변경될 수 있는 힌지된 디바이스의 카메라 기반 시나리오를 위한 것으로, 앱이 카메라 캡처 동작을 동적으로 수정할 수 있도록 합니다.

MediaCapture.CreateRelativePanelWatcher를 호출하여 이 클래스의 instance 가져옵니다.

속성

RelativePanel

MediaCaptureRelativePanelWatcher에서 변경 내용을 모니터링하는 상대 패널을 가져옵니다.

메서드

Close()

상대 패널 감시자를 닫고 연결된 리소스를 삭제합니다.

Dispose()

관리되지 않는 리소스의 확보, 해제 또는 다시 설정과 관련된 애플리케이션 정의 작업을 수행합니다.

Start()

연결된 DisplayRegion의 상대 패널 위치에 대한 MediaCaptureRelativePanelWatcher 모니터링을 시작합니다.

Stop()

연결된 DisplayRegion의 상대 패널 위치에 대한 MediaCaptureRelativePanelWatcher 모니터링을 중지합니다.

이벤트

Changed

MediaCaptureRelativePanelWatcher에서 모니터링하는 패널의 상대 위치가 변경될 때 발생합니다.

적용 대상

추가 정보

  • <xref:Windows.Media.Capture.MediaCapture.CreateRelativePanelWatcher(Windows.Media.Capture.StreamingCaptureMode%2cWindows.UI.WindowManagement.DisplayRegion)%0a%5bDisplayRegion%5d(%2fuwp%2fapi%2fwindows.ui.windowmanagement.displayregion)>