Sdílet prostřednictvím


SpatialGestureRecognizer.NavigationStarted Event

Definition

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.

Applies to