BodyFrameReader.FrameArrived Event

Event that fires whenever a frame is captured.

Syntax

public:
event TypedEventHandler<BodyFrameReader, BodyFrameArrivedEventArgs>^ FrameArrived {
         EventRegistrationToken add (TypedEventHandler<BodyFrameReader, BodyFrameArrivedEventArgs>^ value);
         void remove (EventRegistrationToken token);
}
public event TypedEventHandler<BodyFrameReader, BodyFrameArrivedEventArgs> FrameArrived
function onFrameArrived(eventArgs) { /* Your code */ }

// addEventListener syntax
bodyFrameReader.addEventListener("framearrived", onFrameArrived);
bodyFrameReader.removeEventListener("framearrived", onFrameArrived);

- or -

bodyFrameReader.onframearrived = onFrameArrived;

Requirements

Namespace: WindowsPreview.Kinect

Metadata: windowspreview.kinect.winmd

See also

Reference

BodyFrameReader Class
WindowsPreview.Kinect Namespace