SpatialGestureRecognizer.RecognitionStarted 事件

定义

当手势识别开始 (这是第一个触发) 的事件时发生。

// Register
event_token RecognitionStarted(TypedEventHandler<SpatialGestureRecognizer, SpatialRecognitionStartedEventArgs const&> const& handler) const;

// Revoke with event_token
void RecognitionStarted(event_token const* cookie) const;

// Revoke with event_revoker
SpatialGestureRecognizer::RecognitionStarted_revoker RecognitionStarted(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialRecognitionStartedEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer,SpatialRecognitionStartedEventArgs> RecognitionStarted;
function onRecognitionStarted(eventArgs) { /* Your code */ }
spatialGestureRecognizer.addEventListener("recognitionstarted", onRecognitionStarted);
spatialGestureRecognizer.removeEventListener("recognitionstarted", onRecognitionStarted);
- or -
spatialGestureRecognizer.onrecognitionstarted = onRecognitionStarted;
Public Custom Event RecognitionStarted As TypedEventHandler(Of SpatialGestureRecognizer, SpatialRecognitionStartedEventArgs) 

事件类型

注解

当没有活动手势并且指示手势识别器捕获交互时, SpatialRecognitionStartedEventArgs 事件将触发。 仅当交互可以触发 SpatialGestureSettings 中请求的至少一个手势时,才会触发事件。

对于手部交互,此事件在手指按下时触发。

对于语音交互,当系统语音命令(如“选择”)被朗读时,将触发此事件。

对于运动控制器,当按下“选择”触发器或按钮时,将触发此事件。

适用于