BluetoothHeadset.IsAudioConnected(BluetoothDevice) Method

Definition

Check if Bluetooth SCO audio is connected.

[Android.Runtime.Register("isAudioConnected", "(Landroid/bluetooth/BluetoothDevice;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool IsAudioConnected (Android.Bluetooth.BluetoothDevice? device);
[<Android.Runtime.Register("isAudioConnected", "(Landroid/bluetooth/BluetoothDevice;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.IsAudioConnected : Android.Bluetooth.BluetoothDevice -> bool

Parameters

device
BluetoothDevice

Bluetooth headset

Returns

true if SCO is connected, false otherwise or on error

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothHeadset.isAudioConnected(android.bluetooth.BluetoothDevice).

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