Compartilhar via


InCallService.RequestBluetoothAudio(BluetoothDevice) Method

Definition

Request audio routing to a specific bluetooth device.

[Android.Runtime.Register("requestBluetoothAudio", "(Landroid/bluetooth/BluetoothDevice;)V", "", ApiSince=28)]
public void RequestBluetoothAudio (Android.Bluetooth.BluetoothDevice bluetoothDevice);
[<Android.Runtime.Register("requestBluetoothAudio", "(Landroid/bluetooth/BluetoothDevice;)V", "", ApiSince=28)>]
member 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()

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

Java documentation for android.telecom.InCallService.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