Class DefaultApplicationPolicy
-
- All Implemented Interfaces:
public class DefaultApplicationPolicy extends ApplicationPolicy
Default application policy which doesn't add any restrictions - all features are enabled.
-
-
Constructor Summary
Constructors Constructor Description DefaultApplicationPolicy()
-
Method Summary
Modifier and Type Method Description boolean
hasPermissionForEvent(@NonNull() ApplicationPolicy.PolicyEvent event)
Called to check if certain policy action should be allowed or not. -
-
Method Detail
-
hasPermissionForEvent
boolean hasPermissionForEvent(@NonNull() ApplicationPolicy.PolicyEvent event)
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.
- Parameters:
event
- Event to be permitted or disabled- Returns:
true
to allow the event,false
to prevent it
-
-
-
-