Inherits from EVObject : NSObject
Declared in EVFile.h

Overview

An Everlive file object that is the local representation of the file stored in Everlive cloud.

Tasks

Class Methods

file:block:

Returns the metadata information and the file data for the file with this id

+ (void)file:(id)fileId block:(EVFileResult)block

Parameters

fileId

The unique id for the file.

block

The block to execute. The block should have the following argument signature: (EVFile file, NSError error)

Declared In

EVFile.h

fileWithName:block:

Returns the file metadata and the file data from everlive

+ (void)fileWithName:(NSString *)name block:(EVObjectFetchResultBlock)block

Parameters

name

The name of the file to retrieve.

block

The block to execute. The block should have the following argument signature: (EVFile file, NSError error)

Declared In

EVFile.h

fileWithName:data:contentType:

Returns a new file instance.

+ (id)fileWithName:(NSString *)name data:(NSData *)data contentType:(NSString *)contentType

Parameters

name

The name of the file to retrieve.

data

The content of the file.

contentType

The content type of the file. If nil then it will try to resolve the content type based on byte representation (beta).

Declared In

EVFile.h

metadata:block:

Returns the metadata information for the file with this id, including the file data

+ (void)metadata:(id)fileId block:(EVFileResult)block

Parameters

fileId

The unique id for the file.

block

The block to execute. The block should have the following argument signature: (EVFile file, NSError error)

Declared In

EVFile.h

metadataWithName:block:

Returns the file metadata from everlive

+ (void)metadataWithName:(NSString *)name block:(EVObjectFetchResultBlock)block

Parameters

name

The name of the file to retrieve.

block

The block to execute. The block should have the following argument signature: (EVFile file, NSError error)

Declared In

EVFile.h

Instance Methods

remove:

Deletes the file from everlive. Must be authenticated to perform the operation.

- (void)remove:(EVObjectResultBlock)block

Parameters

block

The block to execute. The block should have the following argument signature: (EVUser user, NSError error)

Declared In

EVFile.h

save:

Saves the file to everlive.

- (void)save:(EVObjectResultBlock)block

Parameters

block

The block to execute. The block should have the following argument signature: (BOOL success, NSError *error)

Declared In

EVFile.h