Class ApplicationPolicy
-
- All Implemented Interfaces:
public abstract class ApplicationPolicy
Application policy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
ApplicationPolicy.PolicyEvent
Currently supported policy events.
-
Constructor Summary
Constructors Constructor Description ApplicationPolicy()
-
Method Summary
Modifier and Type Method Description abstract boolean
hasPermissionForEvent(@NonNull() ApplicationPolicy.PolicyEvent event)
Called to check if certain policy action should be allowed or not. -
-
Method Detail
-
hasPermissionForEvent
abstract 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
-
-
-
-