-
Thanks for this! I was searching for how to activate the camera only while an OverlaySheet is visible, and your approach works great.
Had to modify it a bit: setting initial state
cameraState: Camera.UnloadedState
insideCamera { }
and changingOverlaySheet.onSheetOpenChanged
in l. 65 as follows:onSheetOpenChanged: { if(sheetOpen) camera.start() else camera.stop() }
Please register or sign in to comment