---
title: CGImageDestinationGetTypeID()
framework: imageio
role: symbol
role_heading: Function
path: imageio/cgimagedestinationgettypeid()
---

# CGImageDestinationGetTypeID()

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

## Declaration

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

## Return Value

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

## 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.

## See Also

### Getting the Image Types

- [CGImageDestinationCopyTypeIdentifiers()](imageio/cgimagedestinationcopytypeidentifiers().md)
