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中至少要求的其中一個手勢時,才會引發事件。

針對手部互動,此事件會在手指按下時引發。

針對語音互動,此事件會在說出系統語音命令,例如 「Select」 時引發。

對於運動控制器,當按下 [選取] 觸發程式或按鈕時,就會引發此事件。

適用於