Aracılığıyla paylaş


SpatialGestureRecognizer.HoldCompleted Event

Definition

Occurs when a Hold gesture completes.

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

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

// Revoke with event_revoker
SpatialGestureRecognizer::HoldCompleted_revoker HoldCompleted(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialHoldCompletedEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer,SpatialHoldCompletedEventArgs> HoldCompleted;
function onHoldCompleted(eventArgs) { /* Your code */ }
spatialGestureRecognizer.addEventListener("holdcompleted", onHoldCompleted);
spatialGestureRecognizer.removeEventListener("holdcompleted", onHoldCompleted);
- or -
spatialGestureRecognizer.onholdcompleted = onHoldCompleted;
Public Custom Event HoldCompleted As TypedEventHandler(Of SpatialGestureRecognizer, SpatialHoldCompletedEventArgs) 

Event Type

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.

Applies to