BETextDocumentContext
Information about the text surrounding a selection in a document.
Declaration
class BETextDocumentContextMentioned in
Overview
The BETextInput protocol’s requestDocumentContext(_:completionHandler:) and requestTextContextForAutocorrection(completionHandler:) methods provide an instance of this class to their completion handlers.
Topics
Creating a text document context
init(attributedSelectedText:contextBefore:contextAfter:markedText:selectedRangeInMarkedText:)init(selectedText:contextBefore:contextAfter:markedText:selectedRangeInMarkedText:)