Capture photo, camera panel

Hi!
I’m working with the fuse-camerapanel package by Bolav (https://github.com/bolav/fuse-camerapanel) which works really well. Makes it easy to get a live view of the camera. However, now I’m trying to actually take a still photo. It’s currently only only a placeholder function that returns a string with a dummy filename.

So I’m wondering if anybody else has added this functionality themselves or have any idea of how to capture with object-c, save it as a temp file and return the path? Similar to how the built in camera panel works.