SpatialInteractionManager.InteractionDetected SpatialInteractionManager.InteractionDetected SpatialInteractionManager.InteractionDetected SpatialInteractionManager.InteractionDetected SpatialInteractionManager.InteractionDetected Event

Definition

Occurs when a new interaction is available for routing to a SpatialGestureRecognizer.

public : event TypedEventHandler<SpatialInteractionManager, SpatialInteractionDetectedEventArgs> InteractionDetected
// Register
event_token InteractionDetected(TypedEventHandler<SpatialInteractionManager, SpatialInteractionDetectedEventArgs> const& handler) const;

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

// Revoke with event_revoker
InteractionDetected_revoker InteractionDetected(auto_revoke_t, TypedEventHandler<SpatialInteractionManager, SpatialInteractionDetectedEventArgs> const& handler) const;
public event TypedEventHandler<SpatialInteractionManager, SpatialInteractionDetectedEventArgs> InteractionDetected
Public Event InteractionDetected As TypedEventHandler (Of SpatialInteractionManager, SpatialInteractionDetectedEventArgs)
function onInteractionDetected(eventArgs){/* Your code */}


spatialInteractionManager.addEventListener("interactiondetected", onInteractionDetected);
spatialInteractionManager.removeEventListener("interactiondetected", onInteractionDetected);

Remarks

Pass the SpatialInteraction object in the event arguments to the CaptureInteraction method of the SpatialGestureRecognizer to route this interaction to that gesture recognizer.