PerceptionColorFrameArrivedEventArgs PerceptionColorFrameArrivedEventArgs PerceptionColorFrameArrivedEventArgs PerceptionColorFrameArrivedEventArgs Class

Definition

Contains information about a color frame arrived event.

public : sealed class PerceptionColorFrameArrivedEventArgs : IPerceptionColorFrameArrivedEventArgspublic sealed class PerceptionColorFrameArrivedEventArgs : IPerceptionColorFrameArrivedEventArgsPublic NotInheritable Class PerceptionColorFrameArrivedEventArgs Implements IPerceptionColorFrameArrivedEventArgs// 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

RelativeTime RelativeTime RelativeTime RelativeTime

Gets the relative time of this frame.

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

The relative time of this frame.

Methods

TryOpenFrame() TryOpenFrame() TryOpenFrame() TryOpenFrame()

Attempts to open the color frame that has arrived.

public : PerceptionColorFrame TryOpenFrame()public PerceptionColorFrame TryOpenFrame()Public Function TryOpenFrame() As PerceptionColorFrame// You can use this method in JavaScript.
Returns

If the attempt is successful, this method returns the newly-arrived color frame. If the attempt is unsuccessful, this value is unchanged.

Remarks

Existing frames should be closed before opening new frames. If an app has three or more frames still open when this method is called, TryOpenFrame will fail.