I have done a camera project and explain with pictures.
first i created a button and set camera icon.
than i created camera component named cam.
After that in on button click i set block take picture.
Than go to logic area and in component section have two events.
1. onPicture taken in this event i set block toast block join saved on with file path. this block take pictures and show file path were saved pictures.
2. onPicture taken cancel event i set toast with text cancelled. this block cancel the capture and show the cancel massage.