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 控制器在手勢期間遺失時,就會引發此事件。