---
title: BEContextMenuConfiguration
framework: browserenginekit
role: symbol
role_heading: Class
path: browserenginekit/becontextmenuconfiguration
---

# BEContextMenuConfiguration

An object that defers presentation of a contextual menu.

## Declaration

```swift
@MainActor class BEContextMenuConfiguration
```

## Overview

Overview Return an instance of this class when you don’t yet know whether a contextual menu is presentable, or don’t have the menu items available when the system calls your interaction delegate’s contextMenuInteraction(_:configurationForMenuAtLocation:) method. Once you have the real configuration, call fulfill(using:) with it, or pass nil to indicate that no menu presentation is possible. note: In most situations, use UIDeferredMenuElement when you don’t have the content of a contextual menu element at the time the system asks your delegate and you need to calculate it asynchronously. Use this class instead when the calculation involves a short deferral, for example, an XPC call to a browser extension.

## Topics

### Creating a context menu configuration

- [init()](browserenginekit/becontextmenuconfiguration/init().md)

### Fulfilling the configuration

- [fulfill(using:)](browserenginekit/becontextmenuconfiguration/fulfill(using:).md)

## Relationships

### Inherits From

- [UIContextMenuConfiguration](uikit/uicontextmenuconfiguration.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
