Thanks. @Engineer , I will check your info.
But for now, my requirement is to create a button that can indicate the audio route state, eg:
If no BT is connected, just a built-in and the speaker, Show a button with 2 states: normal(for build-in) and selected(Speaker).
If has BT connected, tap the button will show the system "AVRoutePickerView" for user to choose a route.
but now, I can't get the correct state when "user choose speaker when BT connected", at this time, when user tap the button, I need to show the "AVRoutePickerView", but the current route is speaker, I don't know if the BT is connected.
Hope you can understand my requirements.
thanks.