Share via


SpatialGestureRecognizer.NavigationUpdated Event

Definition

Occurs when a Navigation gesture is updated due to hand or motion controller movement.

// Register
event_token NavigationUpdated(TypedEventHandler<SpatialGestureRecognizer, SpatialNavigationUpdatedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SpatialGestureRecognizer::NavigationUpdated_revoker NavigationUpdated(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialNavigationUpdatedEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer,SpatialNavigationUpdatedEventArgs> NavigationUpdated;
function onNavigationUpdated(eventArgs) { /* Your code */ }
spatialGestureRecognizer.addEventListener("navigationupdated", onNavigationUpdated);
spatialGestureRecognizer.removeEventListener("navigationupdated", onNavigationUpdated);
- or -
spatialGestureRecognizer.onnavigationupdated = onNavigationUpdated;
Public Custom Event NavigationUpdated As TypedEventHandler(Of SpatialGestureRecognizer, SpatialNavigationUpdatedEventArgs) 

Event Type

Remarks

For hand interactions, the SpatialNavigationUpdatedEventArgs event fires when the NavigationStarted hand updates its position.

For voice interactions, this event does not fire.

For motion controller interactions, this event fires when the NavigationStarted controller is moved.

Applies to