How to get IOS device camera status(if it is on or off)

Hi,

I am implementing a SwiftUI application for IOS devices and I require the IOS device camera status(if it is on or off) for my development.

The only relevant info I found is, the green dot on the right corner of the screen but it is also not applicable with the reason that I can not get green dot status from my code.

Could you please support me about getting camera status(On or Off) info via SwiftUI?

Thanks a lot in advance.

Best Regards Emre Günaydin

 

Any résponse?

If that may help:

There is an AVCaptureDevice property isInUseByAnotherApplicationthat Indicates whether the device is being used exclusively by another application.

Hi Claude31,

Thanks a lot. It sound good. I will investigate isInUseByAnotherApplication.

Best Regards Emre

How to get IOS device camera status(if it is on or off)
 
 
Q