/// <summary> /// Constructor of PickUpGestureDetectorAdapter. /// </summary> public PickUpGestureDetectorAdapter() { sensor = new PickUpGestureDetector { Interval = 100, PausePolicy = SensorPausePolicy.None }; }
/// <summary> /// Initializes <see cref="GestureService"/> /// </summary> public void Initialize() { _wristUpGestureDetector = new WristUpGestureDetector(); _wristUpGestureDetector.DataUpdated += WristUpUpdated; _faceDownGestureDetector = new FaceDownGestureDetector(); _faceDownGestureDetector.DataUpdated += FaceDownUpdated; _pickUpGestureDetector = new PickUpGestureDetector(); _pickUpGestureDetector.DataUpdated += PickUpUpdated; _wristUpGestureDetector.Start(); _faceDownGestureDetector.Start(); _pickUpGestureDetector.Start(); }