IKCameraDeviceViewDelegate Protocol Reference

Framework
/System/Library/Frameworks/Quartz.framework/ImageKit.framework
Availability
Available in OS X v10.6 and later.
Declared in
IKCameraDeviceView.h

Overview

The IKCameraDeviceViewDelegate protocol is adopted by the delegate of the IKCameraDeviceView class. It allows downloading of camera content, handling selection changes, and handling errors.

Tasks

Downloading Camera Content

Detecting Selection Changes

Managing Errors

Instance Methods

cameraDeviceView:didDownloadFile:location:fileData:error:

Invoked for each file that is downloaded from the camera device.

- (void)cameraDeviceView:(IKCameraDeviceView *)cameraDeviceView didDownloadFile:(ICCameraFile *)file location:(NSURL *)url fileData:(NSData *)data error:(NSError *)error
Parameters
cameraDeviceView

The camera device view that sent the message.

file

The camera file.

url

The URL to save the data.

data

The data.

error

Any errors encountered during downloading.

Discussion

If the IKCameraDeviceView transferMode property is IKCameraDeviceViewTransferModeFileBased then camera file will have been saved to url. The URL will be a complete path to save the file, including a ‘sequence number’ if the file already exists.

If the transferMode is IKCameraDeviceViewTransferModeMemoryBased then the data parameter contains the image data and can be handled as appropriate for your application.

In case of an error, the passed data (both url and data) will be NULL and error (which may come directly from the camera module / or the ImageCaptureCore framework) will describe why the download or save failed.

Availability
  • Available in OS X v10.6 and later.
Declared In
IKCameraDeviceView.h

cameraDeviceView:didEncounterError:

Invoked when the camera encounters an error.

- (void)cameraDeviceView:(IKCameraDeviceView *)cameraDeviceView didEncounterError:(NSError *)error
Parameters
cameraDeviceView

The camera device view that sent the message.

error

The error.

Availability
  • Available in OS X v10.6 and later.
Declared In
IKCameraDeviceView.h

cameraDeviceViewSelectionDidChange:

Invoked when the selection changed.

- (void)cameraDeviceViewSelectionDidChange:(IKCameraDeviceView *)cameraDeviceView
Parameters
cameraDeviceView

The camera device view that sent the message.

Availability
  • Available in OS X v10.6 and later.
Declared In
IKCameraDeviceView.h