SpatialInteractionManager.InteractionDetected Ereignis

Definition

Tritt auf, wenn eine neue Interaktion für das Routing an einen SpatialGestureRecognizer verfügbar ist.

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

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

// Revoke with event_revoker
SpatialInteractionManager::InteractionDetected_revoker InteractionDetected(auto_revoke_t, TypedEventHandler<SpatialInteractionManager, SpatialInteractionDetectedEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialInteractionManager,SpatialInteractionDetectedEventArgs> InteractionDetected;
function onInteractionDetected(eventArgs) { /* Your code */ }
spatialInteractionManager.addEventListener("interactiondetected", onInteractionDetected);
spatialInteractionManager.removeEventListener("interactiondetected", onInteractionDetected);
- or -
spatialInteractionManager.oninteractiondetected = onInteractionDetected;
Public Custom Event InteractionDetected As TypedEventHandler(Of SpatialInteractionManager, SpatialInteractionDetectedEventArgs) 

Ereignistyp

Hinweise

Übergeben Sie das SpatialInteraction-Objekt in den Ereignisargumenten an die CaptureInteraction-Methode des SpatialGestureRecognizer , um diese Interaktion an diese Gestenerkennung weiterzuleiten.

Gilt für: