getSystemVolume() or the equivalent

I don't expect to be able to SET the user-controlled system volume, but being able to read it would be helpful.

Example: I'm adding alarm clock function to my Playtime clocks app. When someone sets an alarm, I'd like to be able to display a warning if the volume is set below 25%, say. (I can already detect attached headphones for the same reason.)

Could be useful for games too: if audio is absolutely vital, a game might choose to warn people if the sound is muted/low.

(My fallback solution: play a sound as the alarm is set—at least it's a chance for the user to notice on their own if they can't hear the expected feedback.)

10 Likes

Just bumping this real quick to say: I would also like this feature.

2 Likes

Thanks for the reminder. I can see how this would be useful. I'll add it to the list so we can discuss internally!

5 Likes

I'm upvoting that, it'd fun to use that as kind of a hidden control in game

1 Like