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.
-
Method Summary
Modifier and TypeMethodDescription<T> @Nullable ThandlePermissionRequest(PermissionContext context, PermissionNode<T> permission) Main permission checking, it can execute on any thread.
-
Method Details
-
handlePermissionRequest
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.
-