Share via


SpatialInteractionManager.InteractionDetected Kejadian

Definisi

Terjadi ketika interaksi baru tersedia untuk perutean ke 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) 

Jenis Acara

Keterangan

Teruskan objek SpatialInteraction dalam argumen peristiwa ke metode CaptureInteraction dari SpatialGestureRecognizer untuk merutekan interaksi ini ke pengenal gerakan tersebut.

Berlaku untuk