SpatialGestureRecognizer.RecognitionEnded SpatialGestureRecognizer.RecognitionEnded SpatialGestureRecognizer.RecognitionEnded SpatialGestureRecognizer.RecognitionEnded SpatialGestureRecognizer.RecognitionEnded Event

Definition

Occurs when gesture recognition ends, due to completion or cancellation of a gesture (this is the last event to fire).

public : event TypedEventHandler<SpatialGestureRecognizer, SpatialRecognitionEndedEventArgs> RecognitionEnded
// Register
event_token RecognitionEnded(TypedEventHandler<SpatialGestureRecognizer, SpatialRecognitionEndedEventArgs> const& handler) const;

// Revoke with event_token
void RecognitionEnded(event_token const& cookie) const;

// Revoke with event_revoker
RecognitionEnded_revoker RecognitionEnded(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialRecognitionEndedEventArgs> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer, SpatialRecognitionEndedEventArgs> RecognitionEnded
Public Event RecognitionEnded As TypedEventHandler (Of SpatialGestureRecognizer, SpatialRecognitionEndedEventArgs)
function onRecognitionEnded(eventArgs){/* Your code */}


spatialGestureRecognizer.addEventListener("recognitionended", onRecognitionEnded);
spatialGestureRecognizer.removeEventListener("recognitionended", onRecognitionEnded);

Remarks

For hand interactions, the SpatialRecognitionEndedEventArgs event fires on finger release.

For speech interactions, this event fires after a system voice command such as "Select" has been processed.

For motion controllers, this event fires when the Select trigger or button is released.

This event also fires if the relevant interaction source is lost during recognition.