gagan08
gagan08

Reputation: 41

Device policy manager camera blocked callback

I have disabled camera using

    devicePolicyManager.setCameraDisabled(devicePolicyAdmin, true);

But I want to get a callback whenever user access camera and it is blocked by device policy manager.

Is there any broadcast or event for that?

Upvotes: 2

Views: 146

Answers (1)

Bhavya Shah
Bhavya Shah

Reputation: 89

There is no callback for that unfortunately

You will have to regularly check events from UsageEvents class and see if Camera is called to foreground

Upvotes: 1

Related Questions