Share via


SpatialGestureRecognizer.HoldStarted Event

Definition

Occurs when an interaction becomes a Hold gesture.

// Register
event_token HoldStarted(TypedEventHandler<SpatialGestureRecognizer, SpatialHoldStartedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SpatialGestureRecognizer::HoldStarted_revoker HoldStarted(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialHoldStartedEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer,SpatialHoldStartedEventArgs> HoldStarted;
function onHoldStarted(eventArgs) { /* Your code */ }
spatialGestureRecognizer.addEventListener("holdstarted", onHoldStarted);
spatialGestureRecognizer.removeEventListener("holdstarted", onHoldStarted);
- or -
spatialGestureRecognizer.onholdstarted = onHoldStarted;
Public Custom Event HoldStarted As TypedEventHandler(Of SpatialGestureRecognizer, SpatialHoldStartedEventArgs) 

Event Type

Remarks

For hand interactions, the SpatialHoldStartedEventArgs event fires when a finger is held pressed for longer than the Hold time threshold.

For speech interactions, this event does not fire.

For motion controller interactions, this event fires when the Select trigger or button is held pressed for longer than the Hold time threshold.

Applies to