SpatialGestureRecognizer.NavigationUpdated 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 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.