Table of Contents

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

evt EventBase

A PointerDownEvent or KeyDownEvent, in its trickle phase at the draggable.

activation DndSensorActivation

The draggable and the means to start its drag.

Returns

bool

Whether this sensor claimed the event.