Function

SKSummaryCopyParagraphAtIndex(_:_:)

Gets a specified paragraph from the text in a summarization object.

Declaration

func SKSummaryCopyParagraphAtIndex(_ summary: SKSummary!, _ i: CFIndex) -> Unmanaged<CFString>!

Parameters

summary

The summarization object containing the text from which you want a paragraph.

i

The ordinal number of the paragraph in the original text, with the first paragraph designated by zero (this function uses zero-based indexing).

Return Value

A CFString object containing the specified paragraph, or NULL on failure.

See Also

Working With Summarization

func SKSummaryCreateWithString(CFString!)

Creates a summary object based on a text string.

func SKSummaryGetSentenceSummaryInfo(SKSummary!, CFIndex, UnsafeMutablePointer<CFIndex>!, UnsafeMutablePointer<CFIndex>!, UnsafeMutablePointer<CFIndex>!)

Gets detailed information about a body of text for constructing a custom sentence-based summary string.

func SKSummaryGetParagraphSummaryInfo(SKSummary!, CFIndex, UnsafeMutablePointer<CFIndex>!, UnsafeMutablePointer<CFIndex>!)

Gets detailed information about a body of text for constructing a custom paragraph-based summary string.

func SKSummaryGetSentenceCount(SKSummary!)

Gets the number of sentences in a summarization object.

func SKSummaryGetParagraphCount(SKSummary!)

Gets the number of paragraphs in a summarization object.

func SKSummaryCopySentenceAtIndex(SKSummary!, CFIndex)

Gets a specified sentence from the text in a summarization object.

func SKSummaryCopySentenceSummaryString(SKSummary!, CFIndex)

Gets a text string consisting of a summary with, at most, the requested number of sentences.

func SKSummaryCopyParagraphSummaryString(SKSummary!, CFIndex)

Gets a text string consisting of a summary with, at most, the requested number of paragraphs.

func SKSummaryGetTypeID()

Gets the type identifier for Search Kit summarization objects.