SpatialGestureRecognizer.HoldCanceled SpatialGestureRecognizer.HoldCanceled SpatialGestureRecognizer.HoldCanceled SpatialGestureRecognizer.HoldCanceled SpatialGestureRecognizer.HoldCanceled Event

Definition

Occurs when a Hold gesture is canceled.

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

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

// Revoke with event_revoker
HoldCanceled_revoker HoldCanceled(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialHoldCanceledEventArgs> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer, SpatialHoldCanceledEventArgs> HoldCanceled
Public Event HoldCanceled As TypedEventHandler (Of SpatialGestureRecognizer, SpatialHoldCanceledEventArgs)
function onHoldCanceled(eventArgs){/* Your code */}


spatialGestureRecognizer.addEventListener("holdcanceled", onHoldCanceled);
spatialGestureRecognizer.removeEventListener("holdcanceled", onHoldCanceled);

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.