Inherits from EOSObject : NSObject
Declared in EOSVolume.h
EOSVolume.m

Overview

The EOSVolume class is used to represent a volume that is mounted on a camera.

Tasks

Initialization

Getting Volume Information

Getting Files

Formatting the Volume

Instance Methods

fileAtIndex:error:

Gets the file that is in the root directory at the specified index.

- (EOSFile *)fileAtIndex:(NSUInteger)index error:(NSError *__autoreleasing *)error

Parameters

index

The index of the file to get.

error

If unsuccessful, an instance of NSError describes the problem.

Return Value

If successful, an EOSFile object representing the file, otherwise nil.

Discussion

Use fileCount: to find the valid index range.

Declared In

EOSVolume.h

fileCount:

Gets the number of files that are in the root directory.

- (NSNumber *)fileCount:(NSError *__autoreleasing *)error

Parameters

error

If unsuccessful, an instance of NSError describes the problem.

Return Value

If successful, the number of files, otherwise nil.

Declared In

EOSVolume.h

files

Gets all of the files that are in the root directory.

- (NSArray *)files

Return Value

An array containing instances of EOSFile.

Discussion

If there is an error retrieving a file, the function will continue without adding it to the array. If you need to check for errors when reteiving each file, use fileAtIndex:error: instead.

Declared In

EOSVolume.h

format:

Formats the volume

- (BOOL)format:(NSError *__autoreleasing *)error

Parameters

error

If unsuccessful, an instance of NSError will describe the problem.

Return Value

YES if successful, otherwise NO.

Declared In

EOSVolume.h

info:

Gets information about the volume.

- (EOSVolumeInfo *)info:(NSError *__autoreleasing *)error

Parameters

error

If unsuccessful, an instance of NSError will describe the problem.

Return Value

If successful, a EOSVolumeInfo object, otherwise nil.

Declared In

EOSVolume.h

initWithVolumeRef:

Initializes a newly allocated EOSVolume instance with a reference to an EDSDK volume object.

- (id)initWithVolumeRef:(EdsVolumeRef)volumeRef

Parameters

volumeRef

The EDSDK volume reference.

Return Value

The intialized EOSVolume object.

Declared In

EOSVolume.h