---
title: CGImageSourceGetTypeID()
framework: imageio
role: symbol
role_heading: Function
path: imageio/cgimagesourcegettypeid()
---

# CGImageSourceGetTypeID()

Returns the unique type identifier of an image source opaque type.

## Declaration

```swift
func CGImageSourceGetTypeID() -> CFTypeID
```

## Return Value

Return Value Returns the Core Foundation type ID for an image source.

## Discussion

Discussion A type identifier is an integer that identifies the opaque type to which a Core Foundation object belongs. You use type IDs in various contexts, such as when you are operating on heterogeneous collections. Note that a Core Foundation type ID is different from a uniform type identifier.

## See Also

### Getting Information From an Image Source

- [CGImageSourceGetType(_:)](imageio/cgimagesourcegettype(_:).md)
- [CGImageSourceCopyTypeIdentifiers()](imageio/cgimagesourcecopytypeidentifiers().md)
- [CGImageSourceGetCount(_:)](imageio/cgimagesourcegetcount(_:).md)
- [CGImageSourceCopyProperties(_:_:)](imageio/cgimagesourcecopyproperties(_:_:).md)
- [CGImageSourceCopyPropertiesAtIndex(_:_:_:)](imageio/cgimagesourcecopypropertiesatindex(_:_:_:).md)
- [CGImageSourceCopyAuxiliaryDataInfoAtIndex(_:_:_:)](imageio/cgimagesourcecopyauxiliarydatainfoatindex(_:_:_:).md)
