SpatialGestureRecognizer.HoldCanceled 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 HoldCanceled(TypedEventHandler<SpatialGestureRecognizer, SpatialHoldCanceledEventArgs const&> const& handler) const;
// Revoke with event_token
void HoldCanceled(event_token const* cookie) const;
// Revoke with event_revoker
SpatialGestureRecognizer::HoldCanceled_revoker HoldCanceled(auto_revoke_t, TypedEventHandler<SpatialGestureRecognizer, SpatialHoldCanceledEventArgs const&> const& handler) const;
public event TypedEventHandler<SpatialGestureRecognizer,SpatialHoldCanceledEventArgs> HoldCanceled;
function onHoldCanceled(eventArgs) { /* Your code */ }
spatialGestureRecognizer.addEventListener("holdcanceled", onHoldCanceled);
spatialGestureRecognizer.removeEventListener("holdcanceled", onHoldCanceled);
- or -
spatialGestureRecognizer.onholdcanceled = onHoldCanceled;
Public Custom Event HoldCanceled As TypedEventHandler(Of SpatialGestureRecognizer, SpatialHoldCanceledEventArgs)
Event Type
Remarks
For hand interactions, the SpatialHoldCanceledEventArgs event fires when the HoldStarted hand is lost during the gesture.
For speech interactions, this event does not fire.
For motion controller interactions, this event fires when the HoldStarted controller is lost during the gesture.