requestPermission.lua 699 B

1234567891011121314151617181920212223242526
  1. return {
  2. tag = 'system-info',
  3. summary = 'Request permission to use a feature.',
  4. description = [[
  5. Requests permission to use a feature. Usually this will pop up a dialog box that the user needs
  6. to confirm. Once the permission request has been acknowledged, the `lovr.permission` callback
  7. will be called with the result. Currently, this is only used for requesting microphone access
  8. on Android devices.
  9. ]],
  10. arguments = {
  11. permission = {
  12. type = 'Permission',
  13. description = 'The permission to request.'
  14. }
  15. },
  16. returns = {},
  17. variants = {
  18. {
  19. arguments = { 'permission' },
  20. returns = {}
  21. }
  22. },
  23. related = {
  24. 'lovr.permission'
  25. }
  26. }