SpatialGestureRecognizer.HoldStarted SpatialGestureRecognizer.HoldStarted SpatialGestureRecognizer.HoldStarted SpatialGestureRecognizer.HoldStarted SpatialGestureRecognizer.HoldStarted Event

Definition

Occurs when an interaction becomes a Hold gesture.

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

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

// Revoke with event_revoker
HoldStarted_revoker HoldStarted(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialHoldStartedEventArgs> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer, SpatialHoldStartedEventArgs> HoldStarted
Public Event HoldStarted As TypedEventHandler (Of SpatialGestureRecognizer, SpatialHoldStartedEventArgs)
function onHoldStarted(eventArgs){/* Your code */}


spatialGestureRecognizer.addEventListener("holdstarted", onHoldStarted);
spatialGestureRecognizer.removeEventListener("holdstarted", onHoldStarted);

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.