requestPermission.lua 603 B

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