SpatialGestureRecognizer.NavigationStarted 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 an interaction becomes a Navigation gesture.
// Register
event_token NavigationStarted(TypedEventHandler<SpatialGestureRecognizer, SpatialNavigationStartedEventArgs const&> const& handler) const;
// Revoke with event_token
void NavigationStarted(event_token const* cookie) const;
// Revoke with event_revoker
SpatialGestureRecognizer::NavigationStarted_revoker NavigationStarted(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialNavigationStartedEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer,SpatialNavigationStartedEventArgs> NavigationStarted;
function onNavigationStarted(eventArgs) { /* Your code */ }
spatialGestureRecognizer.addEventListener("navigationstarted", onNavigationStarted);
spatialGestureRecognizer.removeEventListener("navigationstarted", onNavigationStarted);
- or -
spatialGestureRecognizer.onnavigationstarted = onNavigationStarted;
Public Custom Event NavigationStarted As TypedEventHandler(Of SpatialGestureRecognizer, SpatialNavigationStartedEventArgs)
Event Type
Remarks
For hand interactions, the SpatialNavigationStartedEventArgs event fires when a finger is pressed and then moves outside of the small Navigation dead-zone.
For voice interactions, this event does not fire.
For motion controller interactions, this event fires when the Select trigger or button is pressed followed by the controller moving outside of the small Navigation dead-zone.