SpatialGestureRecognizer.NavigationCanceled 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
// 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 控制器在手势期间丢失时触发此事件。