共用方式為


SpatialGestureRecognizer.HoldCompleted 事件

定義

發生于保留手勢完成時。

// Register
event_token HoldCompleted(TypedEventHandler<SpatialGestureRecognizer, SpatialHoldCompletedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SpatialGestureRecognizer::HoldCompleted_revoker HoldCompleted(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialHoldCompletedEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer,SpatialHoldCompletedEventArgs> HoldCompleted;
function onHoldCompleted(eventArgs) { /* Your code */ }
spatialGestureRecognizer.addEventListener("holdcompleted", onHoldCompleted);
spatialGestureRecognizer.removeEventListener("holdcompleted", onHoldCompleted);
- or -
spatialGestureRecognizer.onholdcompleted = onHoldCompleted;
Public Custom Event HoldCompleted As TypedEventHandler(Of SpatialGestureRecognizer, SpatialHoldCompletedEventArgs) 

事件類型

備註

對於手部互動,當手指在HoldStarted之後放開時,SpatialHoldCompletedEventArgs事件就會引發。

針對語音互動,此事件不會引發。

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

適用於