Connection.RequestBluetoothAudio(BluetoothDevice) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 ConnectionService
s 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.
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.