How to catch if the user did not allow camera permission

There are some old answers out there... but is there ARKit, RealityKit, and RoomPlan way to do this?

Thanks in advance.