MediaCaptureRelativePanelWatcher クラス

定義

DisplayRegion に関連付けられているパネルを監視し、パネルの相対位置が変更されたときにアプリが通知を受け取るようにします。

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 を呼び出して、このクラスのインスタンスを取得します。

プロパティ

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)>