SpatialGestureRecognizer.HoldCompleted SpatialGestureRecognizer.HoldCompleted SpatialGestureRecognizer.HoldCompleted SpatialGestureRecognizer.HoldCompleted SpatialGestureRecognizer.HoldCompleted Event

Definition

Occurs when a Hold gesture completes.

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

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

// Revoke with event_revoker
HoldCompleted_revoker HoldCompleted(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialHoldCompletedEventArgs> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer, SpatialHoldCompletedEventArgs> HoldCompleted
Public Event HoldCompleted As TypedEventHandler (Of SpatialGestureRecognizer, SpatialHoldCompletedEventArgs)
function onHoldCompleted(eventArgs){/* Your code */}


spatialGestureRecognizer.addEventListener("holdcompleted", onHoldCompleted);
spatialGestureRecognizer.removeEventListener("holdcompleted", onHoldCompleted);

Remarks

For hand interactions, the SpatialHoldCompletedEventArgs event fires when the finger is released after HoldStarted.

For speech interactions, this event does not fire.

For motion controller interactions, this event fires when the Select trigger or button is released after HoldStarted.