One Logo Pool Ball
UIKit · IOS API REFERENCE

UIContextMenuInteraction

class · iOS 13.0+ · SDK 27.1

@MainActor class UIContextMenuInteraction

Members (5)

method · iOS 13.0+

dismissMenu

TypeScript
dismissMenu(): Promise<void>
Swift declaration
func dismissMenu()
init · iOS 13.0+

init

TypeScript
static init(delegate: SDKHandle): Promise<UIContextMenuInteraction>
Swift declaration
init(delegate: any UIContextMenuInteractionDelegate)
method · iOS 13.0+

location

TypeScript
location(view?: (UIView) | null): Promise<{ x: number; y: number }>
Swift declaration
func location(in view: UIView?) -> CGPoint
get · iOS 13.0+

delegate

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

menuAppearance

TypeScript
get menuAppearance(): Promise<UIContextMenuInteraction_appearance>
Swift declaration
var menuAppearance: UIContextMenuInteraction.appearance { get }

Skipped declarations

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

UIContextMenuInteraction.updateVisibleMenu(_:)

callback cannot propagate synchronous failure

UIContextMenuInteraction.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All UIKit types →