TextProofreaderStreamResult
class TextProofreaderStreamResult: NSObjectThe result of a streaming proofread operation.
-
Initializes a new
MPPTextProofreaderStreamResultwith the given chunk and done state.Declaration
Swift
init(chunk: String, corrections: [Correction]?, done: Bool)Parameters
chunkThe generated proofread text chunk.
correctionsThe list of corrections.
doneWhether the proofreading is done.
Return Value
An initialized
MPPTextProofreaderStreamResult. -
The generated proofread text chunk.
Declaration
Swift
var chunk: String { get } -
The list of corrections to transform the input text to the proofread text. Only populated when
doneis YES.Declaration
Swift
var corrections: [Correction]? { get } -
Whether the proofreading is done.
Declaration
Swift
var done: Bool { get }