1

I'm trying to achieve the action sheet like how it is in the native Voicemail. When connected to a bluetooth headset, the "Speaker" button will turn into "Audio". Selecting the "Audio" button will show an action sheet to select an audio output. Something similar can be done with MPVolumeView.showsRouteButton, but that is not what I'm going after. How can I achieve this action sheet style? enter image description here

user2995344
  • 268
  • 1
  • 3
  • 14

1 Answers1

0

If you want to implement your own routing sheet you can grab all available devices and switch between them. This blog should be helpful

I do not believe AVAudioSession can return the list of devices though. This post seems to have a few hacky ways to do so.

abdulajet
  • 148
  • 7