Is there a way to detect if a user opens their system camera?

Tried searching and was not able to find anything about this, essentially I would like an app to pop up an alert, if the user opens their phones camera. Tried messing around with the camera block, and i’m not having any success with it. Any suggestions would be greatly appreciated!