Partager via


Connection.RequestBluetoothAudio(BluetoothDevice) Method

Definition

Request audio routing to a specific bluetooth device.

[Android.Runtime.Register("requestBluetoothAudio", "(Landroid/bluetooth/BluetoothDevice;)V", "GetRequestBluetoothAudio_Landroid_bluetooth_BluetoothDevice_Handler", ApiSince=28)]
public virtual void RequestBluetoothAudio (Android.Bluetooth.BluetoothDevice bluetoothDevice);
[<Android.Runtime.Register("requestBluetoothAudio", "(Landroid/bluetooth/BluetoothDevice;)V", "GetRequestBluetoothAudio_Landroid_bluetooth_BluetoothDevice_Handler", ApiSince=28)>]
abstract member RequestBluetoothAudio : Android.Bluetooth.BluetoothDevice -> unit
override this.RequestBluetoothAudio : Android.Bluetooth.BluetoothDevice -> unit

Parameters

bluetoothDevice
BluetoothDevice

The bluetooth device to connect to.

Attributes

Remarks

Request audio routing to a specific bluetooth device. Calling this method may result in the device routing audio to a different bluetooth device than the one specified if the bluetooth stack is unable to route audio to the requested device. A list of available devices can be obtained via CallAudioState#getSupportedBluetoothDevices()

Used by self-managed ConnectionServices which wish to use bluetooth audio for a self-managed Connection (see PhoneAccount#CAPABILITY_SELF_MANAGED.)

See also InCallService#requestBluetoothAudio(BluetoothDevice)

This member is deprecated. Use #requestCallEndpointChange(CallEndpoint, Executor, OutcomeReceiver) instead.

Java documentation for android.telecom.Connection.requestBluetoothAudio(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