Heh, I abuse this for my Continuity copy-paste bodge. Whenever I switch to Android I miss the cross-device copy-paste from the Apple ecosystem. I think pre Android 10 it was even be possible to access the clipboard from a Service, so an app didn’t even have to be in focus...
Code if you’re interested:
https://github.com/swapsCAPS/sshnip
The KDE Connect app does continuity-style clipboard sharing. Or it did until Google broke it in Android 10.
The work-around the devs found is pretty good - there is a "send clipboard" action you can add directly to the notifications panel - but it's not as nice as it just working.