Method TryActivate
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
TryActivate(EventBase, DndSensorActivation)
Decides whether evt starts this sensor's gesture on the draggable
activation names. Return true to claim it; the drag itself starts when the sensor calls
Start(Vector2, Action?), now or after a constraint of its own.
protected abstract bool TryActivate(EventBase evt, DndSensorActivation activation)
Parameters
evtEventBaseA
PointerDownEventorKeyDownEvent, in its trickle phase at the draggable.activationDndSensorActivationThe draggable and the means to start its drag.
Returns
- bool
Whether this sensor claimed the event.