permission.lua 642 B

12345678910111213141516171819202122232425
  1. return {
  2. tag = 'callbacks',
  3. summary = 'Called when a permission request is answered.',
  4. description = [[
  5. This callback contains a permission response previously requested with
  6. `lovr.system.requestPermission`. The callback contains information on whether permission was
  7. granted or denied.
  8. ]],
  9. arguments = {
  10. {
  11. name = 'permission',
  12. type = 'Permission',
  13. description = 'The type of permission.'
  14. },
  15. {
  16. name = 'granted',
  17. type = 'boolean',
  18. description = 'Whether permission was granted or denied.'
  19. }
  20. },
  21. returns = {},
  22. related = {
  23. 'lovr.system.requestPermission'
  24. }
  25. }