How to implement an onhold event

I want to show a model when an image is pressed and the model should disappear when the finger is released from that image.

Kindly let me know if you guys have implemented it previously.

I think the search term you are looking for is “press” or “onpress”.

I want onhold. press will be long press.