Inherits from NSObject
Declared in KKDownloadProjectFiles.h

Overview

Class that handles downloading of a project’s resource files to the app’s documents directory. This enables updating of resource files at runtime to avoid having to recompile and relaunch the app for every resource file change.

Class Methods

downloadProjectFilesWithURL:completionBlock:

Downloads all project resources files from the url.

+ (id)downloadProjectFilesWithURL:(NSURL *)url completionBlock:(KKDownloadProjectFilesCompletionBlock)completionBlock

Parameters

url

The url where to download the resource files from. The URL is typically set in the devconfig.lua file.

completionBlock

The completion block to run after all files have been downloaded.

Declared In

KKDownloadProjectFiles.h

Instance Methods

initWithURL:completionBlock:

Downloads all project resources files from the url.

- (id)initWithURL:(NSURL *)url completionBlock:(KKDownloadProjectFilesCompletionBlock)completionBlock

Parameters

url

The url where to download the resource files from. The URL is typically set in the devconfig.lua file.

completionBlock

The completion block to run after all files have been downloaded.

Declared In

KKDownloadProjectFiles.h