Callback when headset is removed

Is it possible to know when the player has removed the headset? On other devices the application is paused when this happens, but that doesn’t seem to be the case here.