Class DefaultApplicationPolicy

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

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

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

      • DefaultApplicationPolicy

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