共用方式為


Intent.ActionHeadsetPlug Field

Definition

Broadcast Action: Wired Headset plugged in or unplugged.

[Android.Runtime.Register("ACTION_HEADSET_PLUG")]
public const string ActionHeadsetPlug;
[<Android.Runtime.Register("ACTION_HEADSET_PLUG")>]
val mutable ActionHeadsetPlug : string

Field Value

Implements

Attributes

Remarks

Broadcast Action: Wired Headset plugged in or unplugged.

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

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

Java documentation for android.content.Intent.ACTION_HEADSET_PLUG.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to