One Logo Pool Ball
BrowserEngineKit · IOS API REFERENCE

BETextDocumentContext

class · iOS 17.4+ · SDK 27.1

class BETextDocumentContext

Members (5)

method · iOS 17.4+

addTextRect

TypeScript
addTextRect(rect: { x: number; y: number; width: number; height: number }, range: SDKHandle): void
Swift declaration
func addTextRect(_ rect: CGRect, forCharacterRange range: NSRange)
init · iOS 17.4+

init

TypeScript
static initAttributedSelectedTextContextBeforeContextAfterMarkedTextSelectedRangeInMarkedText(selectedText: (_Foundation_NSAttributedString) | null, contextBefore: (_Foundation_NSAttributedString) | null, contextAfter: (_Foundation_NSAttributedString) | null, markedText: (_Foundation_NSAttributedString) | null, selectedRangeInMarkedText: SDKHandle): BETextDocumentContext
Swift declaration
init(attributedSelectedText selectedText: NSAttributedString?, contextBefore: NSAttributedString?, contextAfter: NSAttributedString?, markedText: NSAttributedString?, selectedRangeInMarkedText: NSRange)
init · iOS 17.4+

init

TypeScript
static initSelectedTextContextBeforeContextAfterMarkedTextSelectedRangeInMarkedText(selectedText: (string) | null, contextBefore: (string) | null, contextAfter: (string) | null, markedText: (string) | null, selectedRangeInMarkedText: SDKHandle): BETextDocumentContext
Swift declaration
init(selectedText: String?, contextBefore: String?, contextAfter: String?, markedText: String?, selectedRangeInMarkedText: NSRange)
get · iOS 17.4+

autocorrectedRanges

TypeScript
get autocorrectedRanges(): Array<_Foundation_NSValue>
Swift declaration
var autocorrectedRanges: [NSValue] { get set }
set · iOS 17.4+

autocorrectedRanges

TypeScript
set autocorrectedRanges(value: Array<_Foundation_NSValue>)
Swift declaration
var autocorrectedRanges: [NSValue] { get set }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

BETextDocumentContext.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All BrowserEngineKit types →