---
title: SKIndexGetTypeID()
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.3+]
path: coreservices/1450223-skindexgettypeid
---

# SKIndexGetTypeID()

Gets the type identifier for Search Kit indexes.

## Declaration

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

## Return Value

Return Value A CFTypeID object containing the type identifier for the SKIndex opaque type.

## Discussion

Discussion Search Kit represents indexes with the SKIndex opaque type. If your code needs to determine whether a particular data type is an index, you can use this function along with the CFGetTypeID(_:) function and perform a comparison. Never hard-code the index type ID because it can change from one release of macOS to another.

## See Also

### Creating, Opening, and Closing Indexes

- [SKIndexCreateWithURL(_:_:_:_:)](coreservices/1446111-skindexcreatewithurl.md)
- [SKIndexCreateWithMutableData(_:_:_:_:)](coreservices/1447500-skindexcreatewithmutabledata.md)
- [SKIndexOpenWithData(_:_:)](coreservices/1446398-skindexopenwithdata.md)
- [SKIndexOpenWithMutableData(_:_:)](coreservices/1444201-skindexopenwithmutabledata.md)
- [SKIndexOpenWithURL(_:_:_:)](coreservices/1449017-skindexopenwithurl.md)
- [SKIndexClose(_:)](coreservices/1442401-skindexclose.md)
- [SKIndexGetIndexType(_:)](coreservices/1442236-skindexgetindextype.md)
