ACTION_HEADSET_PLUG constant

String const ACTION_HEADSET_PLUG

Broadcast Action: Wired Headset plugged in or unplugged.

Same as {@link android.media.AudioManager#ACTION_HEADSET_PLUG}, to be consulted for value and documentation.

If the minimum SDK version of your application is {@link android.os.Build.VERSION_CODES#LOLLIPOP}, it is recommended to refer to the AudioManager constant in your receiver registration code instead.

Implementation

static const String ACTION_HEADSET_PLUG = AudioManager.ACTION_HEADSET_PLUG;