PSPDFTextSelectionMenuAction

Objective-C

enum PSPDFTextSelectionMenuAction : NSUInteger {}

Swift

struct TextSelectionMenuAction : OptionSet, @unchecked Sendable

An option set that represents actions available in the menu for selected text or images.

Warning

This type is deprecated. Use UIAction.Identifier or UIMenu.Identifier in the modern menu system instead. To learn more, see the documentation of the deprecated allowedMenuActions property.

  • Deprecated

    Deprecated in PSPDFKit 12.3 for iOS. Use ‘UIAction.Identifier’ or ‘UIMenu.Identifier’ in the modern menu system instead.

    Allow no action.

    Declaration

    Objective-C

    PSPDFTextSelectionMenuActionNone = 0
  • Deprecated

    Deprecated in PSPDFKit 12.3 for iOS. Use ‘UIAction.Identifier’ or ‘UIMenu.Identifier’ in the modern menu system instead.

    Allow searching the document with selected text.

    Declaration

    Objective-C

    PSPDFTextSelectionMenuActionSearch = 1 << 0

    Swift

    static var search: TextSelectionMenuAction { get }
  • Deprecated

    Deprecated in PSPDFKit 12.3 for iOS. Use ‘UIAction.Identifier’ or ‘UIMenu.Identifier’ in the modern menu system instead.

    Allow presenting the definition for selected text. This action is not available on Mac Catalyst.

    Declaration

    Objective-C

    PSPDFTextSelectionMenuActionDefine = 1 << 1

    Swift

    static var define: TextSelectionMenuAction { get }
  • Deprecated

    Deprecated in PSPDFKit 12.3 for iOS. Use ‘UIAction.Identifier’ or ‘UIMenu.Identifier’ in the modern menu system instead.

    Allow searching Wikipedia with selected text.

    Declaration

    Objective-C

    PSPDFTextSelectionMenuActionWikipedia = 1 << 2

    Swift

    static var wikipedia: TextSelectionMenuAction { get }
  • Deprecated

    Deprecated in PSPDFKit 12.3 for iOS. Use ‘UIAction.Identifier’ or ‘UIMenu.Identifier’ in the modern menu system instead.

    Allow accessibility text-to-speech.

    Declaration

    Objective-C

    PSPDFTextSelectionMenuActionSpeak = 1 << 3

    Swift

    static var speak: TextSelectionMenuAction { get }
  • Deprecated

    Deprecated in PSPDFKit 12.3 for iOS. Use ‘UIAction.Identifier’ or ‘UIMenu.Identifier’ in the modern menu system instead.

    Allow sharing selected text or image.

    Declaration

    Objective-C

    PSPDFTextSelectionMenuActionShare = 1 << 4

    Swift

    static var share: TextSelectionMenuAction { get }
  • Deprecated

    Deprecated in PSPDFKit 12.3 for iOS. Use ‘UIAction.Identifier’ or ‘UIMenu.Identifier’ in the modern menu system instead.

    Allow copying selected text or image.

    Declaration

    Objective-C

    PSPDFTextSelectionMenuActionCopy = 1 << 5

    Swift

    static var copy: TextSelectionMenuAction { get }
  • Deprecated

    Deprecated in PSPDFKit 12.3 for iOS. Use ‘UIAction.Identifier’ or ‘UIMenu.Identifier’ in the modern menu system instead.

    Allow annotating selected text with a text markup annotation.

    Declaration

    Objective-C

    PSPDFTextSelectionMenuActionMarkup = 1 << 6

    Swift

    static var markup: TextSelectionMenuAction { get }
  • Deprecated

    Deprecated in PSPDFKit 12.3 for iOS. Use ‘UIAction.Identifier’ or ‘UIMenu.Identifier’ in the modern menu system instead.

    Allows redacting selected text.

    Declaration

    Objective-C

    PSPDFTextSelectionMenuActionRedact = 1 << 7

    Swift

    static var redact: TextSelectionMenuAction { get }
  • Deprecated

    Deprecated in PSPDFKit 12.3 for iOS. Use ‘UIAction.Identifier’ or ‘UIMenu.Identifier’ in the modern menu system instead.

    Allows creating a link for selected text.

    Declaration

    Objective-C

    PSPDFTextSelectionMenuActionCreateLink = 1 << 8

    Swift

    static var createLink: TextSelectionMenuAction { get }
  • Deprecated

    Deprecated in PSPDFKit 12.3 for iOS. Use ‘UIAction.Identifier’ or ‘UIMenu.Identifier’ in the modern menu system instead.

    Allow creating all supported types of annotations for selected text: Text Highlight, Underline, Squiggly, Strikethrough, Redaction, Link.

    > Note: Removing this from ``PSPDFConfiguration/allowedMenuActions`` has
    > no effect on whether the given tool is available in the menu for
    > creating annotations when long-pressing on an empty area of a page.
    > To customize which tools are available in that menu, use the
    > ``PSPDFConfiguration/editableAnnotationTypes`` or ``PSPDFConfiguration/createAnnotationMenuGroups``
    > configuration property instead. To disable the annotation creation
    > menu entirely, set ``PSPDFConfiguration/createAnnotationMenuEnabled``
    > to `false`.
    

    Declaration

    Objective-C

    PSPDFTextSelectionMenuActionAnnotationCreation =
        (PSPDFTextSelectionMenuActionMarkup | PSPDFTextSelectionMenuActionRedact |
         PSPDFTextSelectionMenuActionCreateLink)

    Swift

    static var annotationCreation: TextSelectionMenuAction { get }
  • Deprecated

    Deprecated in PSPDFKit 12.3 for iOS. Use ‘UIAction.Identifier’ or ‘UIMenu.Identifier’ in the modern menu system instead.

    Allow all supported actions.

    Declaration

    Objective-C

    PSPDFTextSelectionMenuActionAll = (9223372036854775807L * 2UL + 1UL)

    Swift

    static var all: TextSelectionMenuAction { get }