Browse Source

lovr.permission;

bjorn 4 years ago
parent
commit
05d2b45e8b
2 changed files with 472 additions and 1740 deletions
  1. 447 1740
      api/init.lua
  2. 25 0
      api/lovr/callbacks/permission.lua

File diff suppressed because it is too large
+ 447 - 1740
api/init.lua


+ 25 - 0
api/lovr/callbacks/permission.lua

@@ -0,0 +1,25 @@
+return {
+  tag = 'callbacks',
+  summary = 'Called when a permission request is answered.',
+  description = [[
+    This callback contains a permission response previously requested with
+    `lovr.system.requestPermission`.  The callback contains information on whether permission was
+    granted or denied.
+  ]],
+  arguments = {
+    {
+      name = 'permission',
+      type = 'Permission',
+      description = 'The type of permission.'
+    },
+    {
+      name = 'granted',
+      type = 'boolean',
+      description = 'Whether permission was granted or denied.'
+    }
+  },
+  returns = {},
+  related = {
+    'lovr.system.requestPermission'
+  }
+}

Some files were not shown because too many files changed in this diff