onLongPress( )


Adds an event handler that runs when the element is pressed for more than 500 milliseconds.

A mobile element receives an event when a mobile app user presses on the element for more than 500 milliseconds.

Method Declaration
Copy
Method Parameters
handlerfunctionRequired

handler(event: Event): void The name of the function or the function expression to run when an element on a mobile app is pressed for more than 500 milliseconds.

Returns
Return Type:MobileElement
Was this helpful?
Yes
No