Interface PermissionEvents.OnRequest

Enclosing class:
PermissionEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PermissionEvents.OnRequest
  • Method Details

    • handlePermissionRequest

      <T> @Nullable T handlePermissionRequest(PermissionContext context, PermissionNode<T> permission)
      Main permission checking, it can execute on any thread.
      Type Parameters:
      T - type of permission.
      Parameters:
      context - context to check for.
      permission - a permission node representing a permission.
      Returns:
      value of type T if present, null to pass to the next handler.