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)
事件类型
注解
将事件参数中的 SpatialInteraction 对象传递给 SpatialGestureRecognizer 的 CaptureInteraction 方法,以将此交互路由到该手势识别器。