Inherits from NSObject
Declared in ForgeFile.h
ForgeFile.m

Overview

Object containing information about a file with methods to access it.

Tasks

Instance Methods

data:errorBlock:

Access the files data

- (void)data:(ForgeFileDataResultBlock)resultBlock errorBlock:(ForgeFileErrorBlock)errorBlock

Declared In

ForgeFile.m

exists:

Whether or not the referenced file exists

- (void)exists:(ForgeFileExistsResultBlock)resultBlock

Declared In

ForgeFile.m

initWithAssetsPath:

Constructor with a relative path in the ‘assets’ folder

- (ForgeFile *)initWithAssetsPath:(NSString *)assetsPath

Declared In

ForgeFile.m

initWithFile:

Constructor with a file object dictionary

- (ForgeFile *)initWithFile:(NSDictionary *)withFile

Declared In

ForgeFile.m

initWithObject:

Helper constructor that takes either a string or dictionary

- (ForgeFile *)initWithObject:(NSObject *)object

Declared In

ForgeFile.m

initWithPath:

Constructor with a relative path in the ‘src’ folder

- (ForgeFile *)initWithPath:(NSString *)path

Declared In

ForgeFile.m

mimeType

Return the files mime-type (if available)

- (NSString *)mimeType

Declared In

ForgeFile.m

remove

Attempt to remove the file

- (BOOL)remove

Declared In

ForgeFile.m

toJSON

Return the files dictionary to be converted to JSON

- (NSDictionary *)toJSON

Declared In

ForgeFile.m

url

Return a URL that can be used in the WebView to access the resource

- (NSString *)url

Declared In

ForgeFile.m