hasPermissionForEvent

Called to check if certain policy action should be allowed or not.

Since this may get called on main thread multiple times it should be fast.

Return

true to allow the event, false to prevent it

Parameters

event

Event to be permitted or disabled