SpatialGestureRecognizer.NavigationStarted 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
// 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 事件在按下手指后移出小型导航死区时触发。
对于语音交互,此事件不会触发。
对于运动控制器交互,当按下“选择”触发器或按钮后控制器移出小型导航死区时,将触发此事件。