Implementing "Select All" and "Copy" Context Menu in Capacitor 6.0 Android Platform


How can I implement a context menu with “Select All” and “Copy” options when long-pressing any element in the interface on the Capacitor 6.0 Android platform? Currently, only input fields can display a menu with the “Select All” option, but I would like other text elements to also show the “Select All” menu.

My frontend framework is Vue 3, and I am using the Vant 4 component library.

Thank you.

Sure, it should be possible. I use onLongPress from VueUse in my app and the Capacitor Clipboard plugin.