Switch Bluetooth Headset
Feature Overview
When no Bluetooth headphones are connected, it supports only the selection of speaker and earpiece. If Bluetooth headphones are detected, switching between Bluetooth headphones, earpiece, and speaker is implemented by using the Apple AVRoutePickerView component.
Note:
Note: Currently, the switch function for Bluetooth headphones is only supported on the iOS platform.
Usage
1. No Bluetooth headphones connected. Use the UI in TUICallKit to switch between speaker and earpiece. The UI adjustment is as follows.
Earpiece | Speaker |
![]() | ![]() |
2. After connecting Bluetooth headphones, the style of the audio route selection button in TUICallKit changes. Click the button to awaken AVRoutePickerView, switch audio route from AVRoutePickerView, and the button name in TUICallKit will follow.
Audio Route Toggle Button When Connecting Bluetooth Headphones | AVRoutePickerView |
![]() | ![]() |