SpatialInteractionManager.InteractionDetected 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當新的互動可供路由傳送至 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物件傳遞至SpatialGestureRecognizer的CaptureInteraction方法,以將此互動路由至該手勢辨識器。