Compartir a través de


SpatialInteractionManager.SourceDetected Evento

Definición

Se produce cuando se detecta una nueva mano, controlador de movimiento o origen de voz.

// Register
event_token SourceDetected(TypedEventHandler<SpatialInteractionManager, SpatialInteractionSourceEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SpatialInteractionManager::SourceDetected_revoker SourceDetected(auto_revoke_t, TypedEventHandler<SpatialInteractionManager, SpatialInteractionSourceEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialInteractionManager,SpatialInteractionSourceEventArgs> SourceDetected;
function onSourceDetected(eventArgs) { /* Your code */ }
spatialInteractionManager.addEventListener("sourcedetected", onSourceDetected);
spatialInteractionManager.removeEventListener("sourcedetected", onSourceDetected);
- or -
spatialInteractionManager.onsourcedetected = onSourceDetected;
Public Custom Event SourceDetected As TypedEventHandler(Of SpatialInteractionManager, SpatialInteractionSourceEventArgs) 

Tipo de evento

Se aplica a