private void OnGestureDetected(object sender, GestureEventArgs e, int bodyIndex, GestureDetector detector) { var isDetected = e.IsBodyTrackingIdValid && e.IsGestureDetected; StringBuilder text = new StringBuilder(string.Format("Gesture Detected? {0}\n", isDetected)); text.Append(string.Format("Confidence: {0}\n", e.DetectionConfidence)); //print(" = " + bodyIndex + " is : " + e.DetectionConfidence); detector.gestureCheck(e.DetectionConfidence); }