SpatialGestureRecognizer.HoldCompleted Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
// 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)
Event Type
Remarks
For hand interactions, the SpatialHoldCompletedEventArgs event fires when the finger is released after HoldStarted.
For speech interactions, this event does not fire.
For motion controller interactions, this event fires when the Select trigger or button is released after HoldStarted.