共用方式為


SpatialGestureRecognizer.NavigationUpdated 事件

定義

發生于因為手部或動作控制器移動而更新 導覽 手勢時。

// 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) 

事件類型

備註

對於手部互動,當NavigationStarted手部更新其位置時,會引發 SpatialNavigationUpdatedEventArgs事件。

針對語音互動,此事件不會引發。

對於動作控制器互動,當 NavigationStarted 控制器移動時,就會引發此事件。

適用於