Is it possible to programmatically link the physical mute/silent switch to an app function?
I would like to use the mute/silent switch as a toggle to lock/unlock aspects of an app (not sound-specific, but the app does not rely on audio so mute or not is actually moot. 😉
I think you can do that by capturing the hardware button call back; capturing the callback is explained by @John Fricker here.
But the app may be rejected by apple ‘cos as per app store review guidelines