Method BindLongTap
BindLongTap(View?, Action)
Attaches a handler to the long tap gesture event of the specified view, invoking the provided action when a long tap occurs.
public static bool BindLongTap(View? view, Action action)
Parameters
viewViewThe view to which the long tap gesture handler will be attached. Must be a ControlView or a ContentView containing a ControlView to support long tap events.
actionActionThe action to invoke when a long tap gesture is detected on the view. Cannot be null.
Returns
- bool
true if the long tap gesture handler was successfully attached; otherwise, false.
Remarks
If the specified view is a ContentView, the method attempts to attach the handler to its content. Only views of type ControlView (or ContentView containing a ControlView) support long tap gesture events.