SpatialGestureRecognizer.NavigationCanceled SpatialGestureRecognizer.NavigationCanceled SpatialGestureRecognizer.NavigationCanceled SpatialGestureRecognizer.NavigationCanceled SpatialGestureRecognizer.NavigationCanceled Event

Definition

Occurs when a Navigation gesture is canceled.

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

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

// Revoke with event_revoker
NavigationCanceled_revoker NavigationCanceled(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialNavigationCanceledEventArgs> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer, SpatialNavigationCanceledEventArgs> NavigationCanceled
Public Event NavigationCanceled As TypedEventHandler (Of SpatialGestureRecognizer, SpatialNavigationCanceledEventArgs)
function onNavigationCanceled(eventArgs){/* Your code */}


spatialGestureRecognizer.addEventListener("navigationcanceled", onNavigationCanceled);
spatialGestureRecognizer.removeEventListener("navigationcanceled", onNavigationCanceled);

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.