언어

PerceptionDepthFrameSourceWatcher 클래스

정의

깊이 프레임 원본 목록의 변경 내용을 모니터링하고 목록이 변경되면 알림을 제공합니다.

public ref class PerceptionDepthFrameSourceWatcher sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PerceptionDepthFrameSourceWatcher final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Deprecated("PerceptionDepthFrameSourceWatcher may be unavailable after Windows Creator Update.  Use Windows.Devices.Enumeration.DeviceWatcher instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
class PerceptionDepthFrameSourceWatcher final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PerceptionDepthFrameSourceWatcher
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Deprecated("PerceptionDepthFrameSourceWatcher may be unavailable after Windows Creator Update.  Use Windows.Devices.Enumeration.DeviceWatcher instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public sealed class PerceptionDepthFrameSourceWatcher
Public NotInheritable Class PerceptionDepthFrameSourceWatcher
상속
Object Platform::Object IInspectable PerceptionDepthFrameSourceWatcher
특성

Windows 요구 사항

요구 사항 Description
디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

속성

Name Description
Status

깊이 프레임 원본 감시자의 작동 상태 가져옵니다.

메서드

Name Description
Start()

이 메서드가 호출되면 깊이 프레임 원본 감시자는 각 요소에 대해 SourceAdded 이벤트를 실행하여 아직 열거되지 않은 기존 깊이 프레임 원본을 열거합니다. 이 열거형이 완료되면 EnumerationCompleted 이벤트가 발생합니다. 그런 다음 깊이 프레임 원본은 새 깊이 프레임 원본을 감시하기 시작합니다.

Stop()

이 메서드가 호출되면 깊이 프레임 원본 감시자가 깊이 프레임 원본 목록의 변경 내용을 찾는 것을 중지합니다. 이 작업은 즉시 수행되지 않습니다. Stoped 이벤트는 중지 작업이 완료되면 트리거됩니다.

이벤트

Name Description
EnumerationCompleted

EnumerationCompleted 이벤트를 구독합니다. 이 이벤트는 알려진 깊이 프레임 원본의 초기 열거가 완료된 후에 발생합니다.

SourceAdded

SourceAdded 이벤트를 구독합니다.

SourceRemoved

SourceRemoved 이벤트를 구독합니다. 이 이벤트는 제거되는 모든 깊이 프레임 원본에 대해 한 번 발생합니다.

Stopped

Stopped 이벤트를 구독합니다. 이 이벤트는 IPerceptionColorFrameSourceWatcher가 깊이 프레임 원본 목록의 변경 내용에 대한 수신 대기를 중지했을 때 발생합니다.

적용 대상