EVFile Class Reference
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
-
+ file:block:
Returns the metadata information and the file data for the file with this id
-
+ metadata:block:
Returns the metadata information for the file with this id, including the file data
-
+ fileWithName:block:
Returns the file metadata and the file data from everlive
-
+ metadataWithName:block:
Returns the file metadata from everlive
-
+ fileWithName:data:contentType:
Returns a new file instance.
-
– save:
Saves the file to everlive.
-
– remove:
Deletes the file from everlive. Must be authenticated to perform the operation.
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