Share via


BluetoothLeAudio.ActionLeAudioConnectionStateChanged Field

Definition

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

[Android.Runtime.Register("ACTION_LE_AUDIO_CONNECTION_STATE_CHANGED", ApiSince=31)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public const string ActionLeAudioConnectionStateChanged;
[<Android.Runtime.Register("ACTION_LE_AUDIO_CONNECTION_STATE_CHANGED", ApiSince=31)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
val mutable ActionLeAudioConnectionStateChanged : string

Field Value

Implements

Attributes

Remarks

Intent used to broadcast the change in connection state of the LeAudio profile. Please note that in the binaural case, there will be two different LE devices for the left and right side and each device will have their own connection state changes.

This intent will have 3 extras:

<ul> <li>#EXTRA_STATE - The current state of the profile. <li>#EXTRA_PREVIOUS_STATE- The previous state of the profile. <li>BluetoothDevice#EXTRA_DEVICE - The remote device. </ul>

#EXTRA_STATE or #EXTRA_PREVIOUS_STATE can be any of #STATE_DISCONNECTED, #STATE_CONNECTING, #STATE_CONNECTED, #STATE_DISCONNECTING.

Java documentation for android.bluetooth.BluetoothLeAudio.ACTION_LE_AUDIO_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