Language

BluetoothA2dp.ActionConnectionStateChanged Field

Definition

Intent used to broadcast the change in connection state of the A2DP profile.

[Android.Runtime.Register("ACTION_CONNECTION_STATE_CHANGED")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public const string ActionConnectionStateChanged;
[<Android.Runtime.Register("ACTION_CONNECTION_STATE_CHANGED")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
val mutable ActionConnectionStateChanged : string

Field Value

Implements

Attributes

Remarks

Intent used to broadcast the change in connection state of the A2DP profile.

This intent will have the following extras:

<ul> <li>ExtraState - The current state of the profile. <li>ExtraPreviousState- The previous state of the profile. <li>ExtraDevice - The remote device. <li>ExtraDisconnectedReason - The reason for the profile disconnection in case the new state is Disconnected. <li>ExtraClass - The class of the remote device, if available, when the new state is Connected. <li>ExtraLeAppearance - The LE appearance of the remote device, if available, when the new state is Connected. </ul>

ExtraState or ExtraPreviousState can be any of Disconnected, Connecting, Connected, Disconnecting.

Java documentation for android.bluetooth.BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED.

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