SpatialGestureRecognizer.NavigationCanceled 事件

定义

取消 导航 手势时发生。

// Register
event_token NavigationCanceled(TypedEventHandler<SpatialGestureRecognizer, SpatialNavigationCanceledEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SpatialGestureRecognizer::NavigationCanceled_revoker NavigationCanceled(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialNavigationCanceledEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer,SpatialNavigationCanceledEventArgs> NavigationCanceled;
function onNavigationCanceled(eventArgs) { /* Your code */ }
spatialGestureRecognizer.addEventListener("navigationcanceled", onNavigationCanceled);
spatialGestureRecognizer.removeEventListener("navigationcanceled", onNavigationCanceled);
- or -
spatialGestureRecognizer.onnavigationcanceled = onNavigationCanceled;
Public Custom Event NavigationCanceled As TypedEventHandler(Of SpatialGestureRecognizer, SpatialNavigationCanceledEventArgs) 

事件类型

注解

对于手部交互,当 NavigationStarted 手在手势过程中丢失时,将触发 SpatialNavigationCanceledEventArgs 事件。

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

对于运动控制器交互,当 NavigationStarted 控制器在手势期间丢失时触发此事件。

适用于