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 之后释放“选择”触发器或按钮时,将触发此事件。

适用于