Contents

SKIndexGetTypeID()

Gets the type identifier for Search Kit indexes.

Declaration

func SKIndexGetTypeID() -> CFTypeID

Return Value

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

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