共用方式為


SpatialInteractionManager.InteractionDetected 事件

定義

當新的互動可供路由傳送至 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) 

事件類型

備註

將 Event 引數中的SpatialInteraction物件傳遞至SpatialGestureRecognizerCaptureInteraction方法,以將此互動路由至該手勢辨識器。

適用於