SpatialGestureRecognizer.HoldCompleted 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
// 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 之后释放“选择”触发器或按钮时,将触发此事件。