SpatialGestureRecognizer.Tapped SpatialGestureRecognizer.Tapped SpatialGestureRecognizer.Tapped SpatialGestureRecognizer.Tapped SpatialGestureRecognizer.Tapped Event

Definition

Occurs when a Tap or DoubleTap gesture is recognized.

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

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

// Revoke with event_revoker
Tapped_revoker Tapped(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialTappedEventArgs> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer, SpatialTappedEventArgs> Tapped
Public Event Tapped As TypedEventHandler (Of SpatialGestureRecognizer, SpatialTappedEventArgs)
function onTapped(eventArgs){/* Your code */}


spatialGestureRecognizer.addEventListener("tapped", onTapped);
spatialGestureRecognizer.removeEventListener("tapped", onTapped);

Remarks

For hand interactions, the SpatialTappedEventArgs event fires on finger release after a finger press.

For speech interactions, this event fires after the system voice command "Select" has been processed.

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