PerceptionInfraredFrameSourceWatcher PerceptionInfraredFrameSourceWatcher PerceptionInfraredFrameSourceWatcher PerceptionInfraredFrameSourceWatcher Class

Definition

Monitors changes to the list of infrared frame sources, and provides notifications when the list changes.

public : sealed class PerceptionInfraredFrameSourceWatcher : IPerceptionInfraredFrameSourceWatcherpublic sealed class PerceptionInfraredFrameSourceWatcher : IPerceptionInfraredFrameSourceWatcherPublic NotInheritable Class PerceptionInfraredFrameSourceWatcher Implements IPerceptionInfraredFrameSourceWatcher// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Status Status Status Status

Gets the operational status of the infrared frame source watcher.

public : DeviceWatcherStatus Status { get; }public DeviceWatcherStatus Status { get; }Public ReadOnly Property Status As DeviceWatcherStatus// You can use this property in JavaScript.
Value
DeviceWatcherStatus DeviceWatcherStatus DeviceWatcherStatus DeviceWatcherStatus

The operational status of the infrared frame source watcher.

Methods

Start() Start() Start() Start()

When this method is called, the infrared frame source watcher enumerates any existing infrared frame sources it has not already enumerated by firing a SourceAdded event for each one. An EnumerationCompleted event is fired when this enumeration is complete. The infrared frame source then starts watching for new infrared frame sources.

public : void Start()public void Start()Public Function Start() As void// You can use this method in JavaScript.

Stop() Stop() Stop() Stop()

When this method is called, the infrared frame source watcher stops looking for changes to the infrared frame source list. This operation is not immediate; the Stopped event will be triggered when the Stop operation is complete.

public : void Stop()public void Stop()Public Function Stop() As void// You can use this method in JavaScript.

Events

EnumerationCompleted EnumerationCompleted EnumerationCompleted EnumerationCompleted

Subscribes to the EnumerationCompleted event. This event is fired after the initial enumeration of known infrared frame sources is complete.

public : event TypedEventHandler EnumerationCompleted<PerceptionInfraredFrameSourceWatcher,  object>public event TypedEventHandler EnumerationCompleted<PerceptionInfraredFrameSourceWatcher,  object>Public Event EnumerationCompleted<PerceptionInfraredFrameSourceWatcher,  object>// You can use this event in JavaScript.

SourceAdded SourceAdded SourceAdded SourceAdded

Subscribes to the SourceAdded event.

public : event TypedEventHandler SourceAdded<PerceptionInfraredFrameSourceWatcher,  PerceptionInfraredFrameSourceAddedEventArgs>public event TypedEventHandler SourceAdded<PerceptionInfraredFrameSourceWatcher,  PerceptionInfraredFrameSourceAddedEventArgs>Public Event SourceAdded<PerceptionInfraredFrameSourceWatcher,  PerceptionInfraredFrameSourceAddedEventArgs>// You can use this event in JavaScript.

Remarks

When the Start method is called, this event is fired for every infrared frame source already known to the system, then the EnumerationCompleted event is fired. New infrared frame sources that are subsequently added will trigger additional SourceAdded events.

SourceRemoved SourceRemoved SourceRemoved SourceRemoved

Subscribes to the SourceRemoved event. This event is fired once for every infrared frame source that is removed.

public : event TypedEventHandler SourceRemoved<PerceptionInfraredFrameSourceWatcher,  PerceptionInfraredFrameSourceRemovedEventArgs>public event TypedEventHandler SourceRemoved<PerceptionInfraredFrameSourceWatcher,  PerceptionInfraredFrameSourceRemovedEventArgs>Public Event SourceRemoved<PerceptionInfraredFrameSourceWatcher,  PerceptionInfraredFrameSourceRemovedEventArgs>// You can use this event in JavaScript.

Stopped Stopped Stopped Stopped

Subscribes to the Stopped event. This event is fired when the IPerceptionColorFrameSourceWatcher has stopped listeningfor changes to the list of infrared frame sources.

public : event TypedEventHandler Stopped<PerceptionInfraredFrameSourceWatcher,  object>public event TypedEventHandler Stopped<PerceptionInfraredFrameSourceWatcher,  object>Public Event Stopped<PerceptionInfraredFrameSourceWatcher,  object>// You can use this event in JavaScript.