Contents

init(delegate:)

Creates a context menu interaction object with the specified delegate object.

Declaration

init(delegate: any UIContextMenuInteractionDelegate)

Parameters

  • delegate:

    The object that provides the contextual menu and responds to other interaction-related events. This object must adopt the Uicontextmenuinteractiondelegate protocol.

Return Value

A new context menu interaction object with the associated delegate.

See Also

Creating a context menu interaction object