SpatialInteractionManager.SourceDetected Событие

Определение

Происходит при обнаружении новой руки, контроллера движения или источника речи.

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

Тип события

Применяется к