Class

ICCameraFile

An object that represents a file on a camera.

Declaration

class ICCameraFile : ICCameraItem

Overview

Topics

Requesting Metadata

Requesting Thumbnails

func requestThumbnailData(options: [ICCameraItemThumbnailOption : Any]?, completion: (Data?, Error?) -> Void)

Requests a thumbnail and executes the completion block in place of the delegate.

Requesting Downloads

func requestDownload(options: [ICDownloadOption : Any]?, completion: (String?, Error?) -> Void) -> Progress?

Requests a download and executes the completion block in place of the delegate.

Requesting Data

func requestReadData(atOffset: off_t, length: off_t, completion: (Data?, Error?) -> Void)

Requests to asynchronously read data of a specified length from a specified offset, then executes the completion block.

Inspecting a File’s Name

var originalFilename: String?

The original name of the file on disk.

var createdFilename: String?

The created name of the file.

Inspecting a File's Identity

var groupUUID: String?

The group UUID of the file.

var relatedUUID: String?

A related UUID correlating several images from an Apple device.

var originatingAssetID: String?

The originating asset ID of an HEIF or HVEC file.

Determining When a File Was Created or Modified

var fileCreationDate: Date?

The creation date of the file.

var fileModificationDate: Date?

The modification date of the file.

Inspecting a File’s Size

var fileSize: off_t

The size of the file, in bytes.

Inspecting a File’s Dimensions

var width: Int

The width of an image or movie frame.

var height: Int

The height of an image or movie frame.

Inspecting a File’s EXIF Data

var orientation: ICEXIFOrientationType

The orientation to use when downloading the image.

enum ICEXIFOrientationType

The file’s orientation type.

var exifCreationDate: Date?

The EXIF creation date of the file.

var exifModificationDate: Date?

The EXIF modification date of the file.

Identifying a File’s Location

var gpsString: String?

The GPS String of the file in standard format.

Inspecting a File in a Burst

var firstPicked: Bool

A Boolean value that indicates whether a file is autopicked by Photos to represent the burst.

var burstUUID: String?

The burst UUID of the file if it is in a burst.

var burstFavorite: Bool

A Boolean value that indicates this file is the burst favorite in a burst.

var burstPicked: Bool

A Boolean value that indicates whether this file is user picked in a burst.

Inspecting Video Properties

var duration: Double

The duration, in seconds, of an audio or video file.

var highFramerate: Bool

A Boolean value that indicates whether the file is a slow motion or high-frame-rate video file.

var timeLapse: Bool

A Boolean value that indicates whether the file is a time-lapse video file.

Identifying Related Files

var sidecarFiles: [ICCameraItem]?

An array of two camera files associated with this file.

var pairedRawImage: ICCameraFile?

A sidecar file containing the logical RAW compliment of a JPG or other two-format image.

Relationships

Inherits From

Conforms To

See Also

Cameras

class ICCameraDevice

An object that represents a camera.

protocol ICCameraDeviceDelegate

Methods for detecting cameras, getting metadata and thumbnails, handling access and capability changes, and performing other actions on connected cameras.

class ICCameraItem

An abstract class that represents a camera item.

class ICCameraFolder

An object that represents a folder on a camera.