語言

Connection.RequestBluetoothAudio(BluetoothDevice) 方法

定義

請求音訊路由到特定的藍牙裝置。

[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 s(參見 PhoneAccount#CAPABILITY_SELF_MANAGED.)

另請參閱 InCallService#requestBluetoothAudio(BluetoothDevice)

此會員已被棄用。 請改用 #requestCallEndpointChange(CallEndpoint, Executor, OutcomeReceiver)。

Java 文件 android.telecom.Connection.requestBluetoothAudio(android.bluetooth.BluetoothDevice)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於