---
title: "files(ofType:)"
framework: imagecapturecore
role: symbol
role_heading: Instance Method
path: "imagecapturecore/iccameradevice/files(oftype:)"
---

# files(ofType:)

Returns an array of files of the selected type on the camera.

## Declaration

```swift
func files(ofType fileUTType: String) -> [String]?
```

## Discussion

Discussion For the fileType parameter, pass one of the following uniform type identifier strings: kUTTypeImage, kUTTypeMovie, kUTTypeAudio, or kUTTypeData.

## See Also

### Reading Files

- [contents](imagecapturecore/iccameradevice/contents.md)
- [mediaFiles](imagecapturecore/iccameradevice/mediafiles.md)
- [contentCatalogPercentCompleted](imagecapturecore/iccameradevice/contentcatalogpercentcompleted.md)
- [requestReadData(from:atOffset:length:readDelegate:didReadDataSelector:contextInfo:)](imagecapturecore/iccameradevice/requestreaddata(from:atoffset:length:readdelegate:didreaddataselector:contextinfo:).md)
