MediaCapture.CreateRelativePanelWatcher 메서드

정의

제공된 DisplayRegion과 연결된 패널을 모니터링하는 MediaCaptureRelativePanelWatcher 클래스의 새 instance 만들어 패널의 상대 위치가 변경될 때 앱이 알림을 받도록 합니다.

public:
 virtual MediaCaptureRelativePanelWatcher ^ CreateRelativePanelWatcher(StreamingCaptureMode captureMode, DisplayRegion ^ displayRegion) = CreateRelativePanelWatcher;
MediaCaptureRelativePanelWatcher CreateRelativePanelWatcher(StreamingCaptureMode const& captureMode, DisplayRegion const& displayRegion);
public MediaCaptureRelativePanelWatcher CreateRelativePanelWatcher(StreamingCaptureMode captureMode, DisplayRegion displayRegion);
function createRelativePanelWatcher(captureMode, displayRegion)
Public Function CreateRelativePanelWatcher (captureMode As StreamingCaptureMode, displayRegion As DisplayRegion) As MediaCaptureRelativePanelWatcher

매개 변수

displayRegion
DisplayRegion

연결된 패널이 변경 내용을 모니터링하는 DisplayRegion 입니다. 일반적으로 이 표시 영역은 카메라 보기 찾기 UI 요소이므로 보기 찾기를 포함하는 패널의 상대 위치가 변경되면 앱에 경고가 표시됩니다.

반환

MediaCaptureRelativePanelWatcher 클래스의 새 instance.

Windows 요구 사항

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

설명

앱은 감시자와 연결된 DisplayRegion이 변경될 때마다 발생하는 DisplayRegion.Changed 이벤트에 대한 처리기를 구현해야 합니다. 이 처리기에서 앱은 감시자 개체를 삭제하고, 개체를 다시 만들고, MediaCaptureRelativePanelWatcher.Changed 이벤트에 대한 처리기를 다시 등록해야 합니다.

적용 대상

추가 정보

  • <xref:Windows.Media.Capture.MediaCaptureRelativePanelWatcher%0a%5bDisplayRegion%5d(%2fuwp%2fapi%2fwindows.ui.windowmanagement.displayregion)>