語言

InCallService.RequestBluetoothAudio(BluetoothDevice) 方法

定義

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

[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

參數

bluetoothDevice
BluetoothDevice

就是要連接的藍牙裝置。

屬性

備註

請求音訊路由到特定的藍牙裝置。 若藍牙堆疊無法將音訊路由至指定裝置,呼叫此方法可能導致裝置將音訊路由至指定的不同裝置。 可用裝置清單可透過以下方式取得 CallAudioState#getSupportedBluetoothDevices()

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

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

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

適用於