PerceptionDepthFrameArrivedEventArgs PerceptionDepthFrameArrivedEventArgs PerceptionDepthFrameArrivedEventArgs PerceptionDepthFrameArrivedEventArgs Class

Definition

Contains information about a depth frame arrived event.

public : sealed class PerceptionDepthFrameArrivedEventArgs : IPerceptionDepthFrameArrivedEventArgspublic sealed class PerceptionDepthFrameArrivedEventArgs : IPerceptionDepthFrameArrivedEventArgsPublic NotInheritable Class PerceptionDepthFrameArrivedEventArgs Implements IPerceptionDepthFrameArrivedEventArgs// 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 depth frame that has arrived. 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.

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

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