Official Way for Volume Button Snap

What is the official way to gain VOLUME SNAP and BLUETOOTH SNAP with AVFoundation Camera?


From my understanding, the only way to accomplish this is having a AVMedia player, hide it off screen, then listen to that to snap image?


Thanks in advance.