Hi jemtan, thanks for helping!
Sorry for not being clear enough with the question.
The issue is that I would like to know what to put in the function. Because I want something like a dialog to present options. But this dialog should not take over the entire screen. It should look like all the usual dialogs that open after tapholding in most apps.
It seems a very basic functionality. There must be something obvious that I've missed.
Alex