Xcode - how to verify the Call Audio Routing speaker settings?

I’d like to be able to notify the user on iPhone of the speaker setting in Device Settings/General/Accessibility/Call Audio Routing. I’m not interested in changing its status in the app (I actually found code for that!).

I just want to be able to display the setting in the app. I.E. “Speaker is ON”, so they don’t have to go to Settings to check it.

@alfaniner. Thanks very much for your question, and my apologies for the delayed response!

If you are able to change the settings, this means you are able to detect what state the properties are currently in. What I would suggest is simply display a string that you set, depending what you it is found in settings. This string would be assigned to the text property of a UILabel, and this would be displayed however way you want to the user. More than likely, it would be some if/else statement that would check the value in settings, and then given what is found, set the value to either “ON” or “OFF”.

I hope this helps!

All the best!