SKIndexCopyDocumentRefsForDocumentIDs(_:_:_:_:)
Gets document URL objects (of type Skdocument) based on document IDs.
Declaration
func SKIndexCopyDocumentRefsForDocumentIDs(_ inIndex: SKIndex!, _ inCount: CFIndex, _ inDocumentIDsArray: UnsafeMutablePointer<SKDocumentID>!, _ outDocumentRefsArray: UnsafeMutablePointer<Unmanaged<SKDocument>?>!)Parameters
- inIndex:
The index containing the document information.
- inCount:
The number of document IDs in
inDocumentIDsArray. - inDocumentIDsArray:
Points to an array of document IDs corresponding to the document URL objects (of type Skdocument) you want.
- outDocumentRefsArray:
On input, a pointer to an array for document URL objects. On output, points to the previously allocated array, which now contains document URL objects corresponding to the document IDs in
inDocumentIDsArray.When finished with the document URL objects array, dispose of it by calling Cfrelease on each array element.
Discussion
The SKIndexCopyDocumentRefsForDocumentIDs(_:_:_:_:) function lets you get a batch of document URL objects (of type SKDocument) in one step, based on a list of document IDs.
If you want to get lightweight URLs in the form of CFURL objects instead, use SKIndexCopyDocumentURLsForDocumentIDs(_:_:_:_:).
See Also
Working with Documents and Terms
SKDocumentCreateWithURL(_:)SKDocumentCreate(_:_:_:)SKDocumentCopyURL(_:)SKDocumentGetName(_:)SKDocumentGetParent(_:)SKDocumentGetSchemeName(_:)SKDocumentGetTypeID()SKIndexCopyDocumentForDocumentID(_:_:)SKIndexCopyInfoForDocumentIDs(_:_:_:_:_:)SKIndexCopyDocumentURLsForDocumentIDs(_:_:_:_:)SKIndexCopyDocumentIDArrayForTermID(_:_:)SKIndexCopyTermIDArrayForDocumentID(_:_:)SKIndexCopyTermStringForTermID(_:_:)SKIndexGetTermIDForTermString(_:_:)SKIndexSetDocumentProperties(_:_:_:)SKIndexCopyDocumentProperties(_:_:)SKIndexGetDocumentState(_:_:)SKIndexGetDocumentTermCount(_:_:)SKIndexGetDocumentTermFrequency(_:_:_:)SKIndexGetTermDocumentCount(_:_:)SKIndexGetDocumentID(_:_:)