Compartir a través de


SpatialInteractionManager.InteractionDetected Evento

Definición

Se produce cuando hay disponible una nueva interacción para el enrutamiento a spatialGestureRecognizer.

// 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) 

Tipo de evento

Comentarios

Pase el objeto SpatialInteraction en los argumentos de evento al método CaptureInteraction del spatialGestureRecognizer para enrutar esta interacción a ese reconocedor de gestos.

Se aplica a