One Logo Pool Ball
BrowserEngineKit · IOS API REFERENCE

BETextInteraction

class · iOS 17.4+ · SDK 27.1

@MainActor class BETextInteraction

Members (19)

method · iOS 17.4+

addShortcut

TypeScript
addShortcut(text: string, presentationRect: { x: number; y: number; width: number; height: number }): Promise<void>
Swift declaration
func addShortcut(forText text: String, from presentationRect: CGRect)
method · iOS 17.4+

dismissEditMenuForSelection

TypeScript
dismissEditMenuForSelection(): Promise<void>
Swift declaration
func dismissEditMenuForSelection()
method · iOS 17.4+

editabilityChanged

TypeScript
editabilityChanged(): Promise<void>
Swift declaration
func editabilityChanged()
init

init

TypeScript
static init(): Promise<BETextInteraction>
Swift declaration
init()
method · iOS 17.4+

presentEditMenuForSelection

TypeScript
presentEditMenuForSelection(): Promise<void>
Swift declaration
func presentEditMenuForSelection()
method · iOS 17.4+

refreshKeyboardUI

TypeScript
refreshKeyboardUI(): Promise<void>
Swift declaration
func refreshKeyboardUI()
method · iOS 17.4+

selectionBoundaryAdjusted

TypeScript
selectionBoundaryAdjusted(point: { x: number; y: number }, touch: BESelectionTouchPhase, flags: BESelectionFlags): Promise<void>
Swift declaration
func selectionBoundaryAdjusted(to point: CGPoint, touchPhase touch: BESelectionTouchPhase, flags: BESelectionFlags)
method · iOS 17.4+

selectionChangedWithGesture

TypeScript
selectionChangedWithGesture(point: { x: number; y: number }, gestureType: BEGestureType, gestureState: _UIKit_UIGestureRecognizer_State, flags: BESelectionFlags): Promise<void>
Swift declaration
func selectionChangedWithGesture(at point: CGPoint, gesture gestureType: BEGestureType, state gestureState: UIGestureRecognizer.State, flags: BESelectionFlags)
method · iOS 17.4+

share

TypeScript
share(text: string, presentationRect: { x: number; y: number; width: number; height: number }): Promise<void>
Swift declaration
func share(text: String, from presentationRect: CGRect)
method · iOS 17.4+

showDictionary

TypeScript
showDictionary(textWithContext: string, range: SDKHandle, presentationRect: { x: number; y: number; width: number; height: number }): Promise<void>
Swift declaration
func showDictionary(forTextInContext textWithContext: String, definingTextInRange range: NSRange, from presentationRect: CGRect)
method · iOS 17.4+

showReplacements

TypeScript
showReplacements(text: string): Promise<void>
Swift declaration
func showReplacements(forText text: String)
method · iOS 17.4+

translate

TypeScript
translate(text: string, presentationRect: { x: number; y: number; width: number; height: number }): Promise<void>
Swift declaration
func translate(text: String, from presentationRect: CGRect)
method · iOS 17.4+

transliterateChinese

TypeScript
transliterateChinese(text: string): Promise<void>
Swift declaration
func transliterateChinese(forText text: String)
get · iOS 17.4+

contextMenuInteraction

TypeScript
get contextMenuInteraction(): Promise<_UIKit_UIContextMenuInteraction>
Swift declaration
var contextMenuInteraction: UIContextMenuInteraction { get }
get · iOS 17.4+

contextMenuInteractionDelegate

TypeScript
get contextMenuInteractionDelegate(): Promise<(SDKHandle) | null>
Swift declaration
weak var contextMenuInteractionDelegate: (any UIContextMenuInteractionDelegate)? { get set }
set · iOS 17.4+

contextMenuInteractionDelegate

TypeScript
setContextMenuInteractionDelegate(value?: (SDKHandle) | null): Promise<void>
Swift declaration
weak var contextMenuInteractionDelegate: (any UIContextMenuInteractionDelegate)? { get set }
get · iOS 17.4+

delegate

TypeScript
get delegate(): Promise<(SDKHandle) | null>
Swift declaration
weak var delegate: (any BETextInteractionDelegate)? { get set }
set · iOS 17.4+

delegate

TypeScript
setDelegate(value?: (Implements<BETextInteractionDelegate> | SDKHandle) | null): Promise<void>
Swift declaration
weak var delegate: (any BETextInteractionDelegate)? { get set }
get · iOS 17.4+

textSelectionDisplayInteraction

TypeScript
get textSelectionDisplayInteraction(): Promise<_UIKit_UITextSelectionDisplayInteraction>
Swift declaration
var textSelectionDisplayInteraction: UITextSelectionDisplayInteraction { get }

Skipped declarations

No declarations were skipped in this snapshot.

All BrowserEngineKit types →