SpatialGestureRecognizer.NavigationStarted 事件

定义

当交互成为 导航 手势时发生。

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

事件类型

注解

对于手部交互, SpatialNavigationStartedEventArgs 事件在按下手指后移出小型导航死区时触发。

对于语音交互,此事件不会触发。

对于运动控制器交互,当按下“选择”触发器或按钮后控制器移出小型导航死区时,将触发此事件。

适用于