SpatialGestureRecognizer.HoldStarted 事件

定义

当交互变为 保持 手势时发生。

// Register
event_token HoldStarted(TypedEventHandler<SpatialGestureRecognizer, SpatialHoldStartedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SpatialGestureRecognizer::HoldStarted_revoker HoldStarted(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialHoldStartedEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer,SpatialHoldStartedEventArgs> HoldStarted;
function onHoldStarted(eventArgs) { /* Your code */ }
spatialGestureRecognizer.addEventListener("holdstarted", onHoldStarted);
spatialGestureRecognizer.removeEventListener("holdstarted", onHoldStarted);
- or -
spatialGestureRecognizer.onholdstarted = onHoldStarted;
Public Custom Event HoldStarted As TypedEventHandler(Of SpatialGestureRecognizer, SpatialHoldStartedEventArgs) 

事件类型

注解

对于手部交互,当手指按住的时间超过保持时间阈值时, 将触发 SpatialHoldStartedEventArgs 事件。

对于语音交互,此事件不会触发。

对于运动控制器交互,当按住“选择”触发器或按钮超过保持时间阈值时,将触发此事件。

适用于