Share via


SpatialGestureRecognizer.RecognitionEnded Event

Definition

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

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

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

// Revoke with event_revoker
SpatialGestureRecognizer::RecognitionEnded_revoker RecognitionEnded(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialRecognitionEndedEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer,SpatialRecognitionEndedEventArgs> RecognitionEnded;
function onRecognitionEnded(eventArgs) { /* Your code */ }
spatialGestureRecognizer.addEventListener("recognitionended", onRecognitionEnded);
spatialGestureRecognizer.removeEventListener("recognitionended", onRecognitionEnded);
- or -
spatialGestureRecognizer.onrecognitionended = onRecognitionEnded;
Public Custom Event RecognitionEnded As TypedEventHandler(Of SpatialGestureRecognizer, SpatialRecognitionEndedEventArgs) 

Event Type

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.

Applies to