Hi, I don't know if this is possible,
But I have Apple AirPods 2 pro headphones,
And my MacBook computer has a feature of detecting removal from the ear - as soon as you take out an earpiece, the sound stops, and when you put it in it continues. Android doesn't have it.
I've tried all kinds of...