Aracılığıyla paylaş


SpatialGestureRecognizer.HoldCanceled Event

Definition

Occurs when a Hold gesture is canceled.

// 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) 

Event Type

Remarks

For hand interactions, the SpatialHoldCanceledEventArgs event fires when the HoldStarted hand is lost during the gesture.

For speech interactions, this event does not fire.

For motion controller interactions, this event fires when the HoldStarted controller is lost during the gesture.

Applies to