共用方式為


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

適用於