Skip to content
  • 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 inside Camera { } and changing OverlaySheet.onSheetOpenChanged in l. 65 as follows:

    onSheetOpenChanged: {
        if(sheetOpen)
            camera.start()
        else
            camera.stop()
    }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment