The long_press signal is emitted during the long press gesture handling.
This signal can be emitted multiple times with different states.
The QUERY state will be emitted on button presses, and its return value
will determine whether the long press handling should be initiated. If the signal handlers will return true
, the
QUERY state will be followed either by a signal emission with the
ACTIVATE state if the long press constraints were respected, or by a
signal emission with the CANCEL state if the long press was cancelled.
It is possible to forcibly cancel a long press detection using release.
actor |
the Actor attached to the |
state |
the long press state |
Only the QUERY state uses the returned value of the handler; other states will ignore it |