SpatialGestureRecognizer.NavigationCanceled Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.