共用方式為


SpatialGestureRecognizer.RecognitionEnded 事件

定義

發生于手勢辨識結束時,因為手勢完成或取消 (這是引發) 的最後一個事件。

// Register
event_token RecognitionEnded(TypedEventHandler<SpatialGestureRecognizer, SpatialRecognitionEndedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SpatialGestureRecognizer::RecognitionEnded_revoker RecognitionEnded(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialRecognitionEndedEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer,SpatialRecognitionEndedEventArgs> RecognitionEnded;
function onRecognitionEnded(eventArgs) { /* Your code */ }
spatialGestureRecognizer.addEventListener("recognitionended", onRecognitionEnded);
spatialGestureRecognizer.removeEventListener("recognitionended", onRecognitionEnded);
- or -
spatialGestureRecognizer.onrecognitionended = onRecognitionEnded;
Public Custom Event RecognitionEnded As TypedEventHandler(Of SpatialGestureRecognizer, SpatialRecognitionEndedEventArgs) 

事件類型

備註

對於手部互動, SpatialRecognitionEndedEventArgs 事件會在手指釋放時引發。

針對語音互動,此事件會在處理系統語音命令,例如 「Select」 之後引發。

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

如果辨識期間遺失相關的互動來源,也會引發此事件。

適用於