---
title: "requestPreferredArrowDirectionForEditMenu(completionHandler:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/betextinput/requestpreferredarrowdirectionforeditmenu(completionhandler:)"
---

# requestPreferredArrowDirectionForEditMenu(completionHandler:)

Invoked by the system to gather context, including the client’s preference for how the edit menu should be positioned relative to the selected text.

## Declaration

```swift
func requestPreferredArrowDirectionForEditMenu(completionHandler: @escaping @Sendable (UIEditMenuArrowDirection) -> Void)
```

```swift
func requestPreferredArrowDirectionForEditMenu() async -> UIEditMenuArrowDirection
```
