Connection.RequestBluetoothAudio(BluetoothDevice) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
请求到特定蓝牙设备的音频路由。
[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
参数
- bluetoothDevice
- BluetoothDevice
要连接到的蓝牙设备。
- 特性
注解
请求到特定蓝牙设备的音频路由。 调用此方法可能会导致设备将音频路由到不同于指定的蓝牙设备(如果蓝牙堆栈无法将音频路由到请求的设备)。 可以通过以下方式获取可用设备列表 CallAudioState#getSupportedBluetoothDevices()
供自管理使用蓝牙音频的自管理ConnectionServiceConnection使用(请参阅PhoneAccount#CAPABILITY_SELF_MANAGED.)
另请参阅 InCallService#requestBluetoothAudio(BluetoothDevice)
此成员已弃用。 改用 #requestCallEndpointChange(CallEndpoint, Executor, OutcomeReceiver)。
Java文档android.telecom.Connection.requestBluetoothAudio(android.bluetooth.BluetoothDevice)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。