SpatialGestureRecognizer.HoldCanceled 事件

定义

取消 保留 手势时发生。

// Register
event_token HoldCanceled(TypedEventHandler<SpatialGestureRecognizer, SpatialHoldCanceledEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SpatialGestureRecognizer::HoldCanceled_revoker HoldCanceled(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialHoldCanceledEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer,SpatialHoldCanceledEventArgs> HoldCanceled;
function onHoldCanceled(eventArgs) { /* Your code */ }
spatialGestureRecognizer.addEventListener("holdcanceled", onHoldCanceled);
spatialGestureRecognizer.removeEventListener("holdcanceled", onHoldCanceled);
- or -
spatialGestureRecognizer.onholdcanceled = onHoldCanceled;
Public Custom Event HoldCanceled As TypedEventHandler(Of SpatialGestureRecognizer, SpatialHoldCanceledEventArgs) 

事件类型

注解

对于手部交互,当手势期间 HoldStarted 手丢失时,SpatialHoldCanceledEventArgs 事件会触发。

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

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

适用于