Share via


FaceFrameSource.TrackingIdLost Event

This event occurs when invalid frames arrive for the TrackingId listed in the event args.

Syntax

public:
event TypedEventHandler<FaceFrameSource, TrackingIdLostEventArgs, >^ TrackingIdLost {
         EventRegistrationToken add (TypedEventHandler<FaceFrameSource, TrackingIdLostEventArgs, >^ value);
         void remove (EventRegistrationToken token);
}
public event TypedEventHandler<FaceFrameSource, TrackingIdLostEventArgs, > TrackingIdLost
function onTrackingIdLost(eventArgs) { /* Your code */ }

// addEventListener syntax
faceFrameSource.addEventListener("trackingidlost", onTrackingIdLost);
faceFrameSource.removeEventListener("trackingidlost", onTrackingIdLost);

- or -

faceFrameSource.ontrackingidlost = onTrackingIdLost;

Requirements

Namespace: Microsoft.Kinect.Face

Assembly: Microsoft.Kinect.Face (in microsoft.kinect.face.dll)

See also

Reference

FaceFrameSource Class
Microsoft.Kinect.Face Namespace