lovr.permission

This callback contains a permission response previously requested with lovr.system.requestPermission. The callback contains information on whether permission was granted or denied.

function lovr.permission(permission, granted)
  -- your code here
end

Arguments

NameTypeDescription
permissionPermissionThe type of permission.
grantedbooleanWhether permission was granted or denied.

Returns

Nothing

See also