SpatialInteractionManager.SourceDetected SpatialInteractionManager.SourceDetected SpatialInteractionManager.SourceDetected SpatialInteractionManager.SourceDetected SpatialInteractionManager.SourceDetected Event

Definition

Occurs when a new hand, motion controller, or speech source has been detected.

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

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

// Revoke with event_revoker
SourceDetected_revoker SourceDetected(auto_revoke_t, TypedEventHandler<SpatialInteractionManager, SpatialInteractionSourceEventArgs> const& handler) const;
public event TypedEventHandler<SpatialInteractionManager, SpatialInteractionSourceEventArgs> SourceDetected
Public Event SourceDetected As TypedEventHandler (Of SpatialInteractionManager, SpatialInteractionSourceEventArgs)
function onSourceDetected(eventArgs){/* Your code */}


spatialInteractionManager.addEventListener("sourcedetected", onSourceDetected);
spatialInteractionManager.removeEventListener("sourcedetected", onSourceDetected);