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.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ApplicationPolicy

        ApplicationPolicy()
    • 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