SpatialGestureRecognizer.NavigationCanceled Event

Definition

Occurs when a Navigation gesture is canceled.

// Register
event_token NavigationCanceled(TypedEventHandler<SpatialGestureRecognizer, SpatialNavigationCanceledEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SpatialGestureRecognizer::NavigationCanceled_revoker NavigationCanceled(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialNavigationCanceledEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer,SpatialNavigationCanceledEventArgs> NavigationCanceled;
function onNavigationCanceled(eventArgs) { /* Your code */ }
spatialGestureRecognizer.addEventListener("navigationcanceled", onNavigationCanceled);
spatialGestureRecognizer.removeEventListener("navigationcanceled", onNavigationCanceled);
- or -
spatialGestureRecognizer.onnavigationcanceled = onNavigationCanceled;
Public Custom Event NavigationCanceled As TypedEventHandler(Of SpatialGestureRecognizer, SpatialNavigationCanceledEventArgs) 

Event Type

Remarks

For hand interactions, the SpatialNavigationCanceledEventArgs event fires when the NavigationStarted hand is lost during the gesture.

For speech interactions, this event does not fire.

For motion controller interactions, this event fires when the NavigationStarted controller is lost during the gesture.

Applies to