[ Version ( since = "1.8" ) ]
public virtual signal bool long_press (Actor actor, LongPressState state)

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 .



the Actor attached to the action


the long press state


Only the QUERY state uses the returned value of the handler; other states will ignore it