PSPDFContextMenuOption
Objective-C
enum PSPDFContextMenuOption : NSInteger {}
Swift
@frozen enum ContextMenuOption : Int, @unchecked Sendable
An enum that controls whether a menu or a popover is allowed when calling
PSPDFUserInterfaceControls/showMenuIfSelectedWithOption:animated:
.
-
Deprecated
Deprecated in PSPDFKit 12.3 for iOS. Use one of the ‘PDFPageView.select(…:presentMenu:animated:)’ methods instead.
Only a menu can be presented. No popover will be allowed.
Declaration
Objective-C
PSPDFContextMenuOptionMenuOnly
Swift
case menuOnly = 0
-
Deprecated
Deprecated in PSPDFKit 12.3 for iOS. Use one of the ‘PDFPageView.select(…:presentMenu:animated:)’ methods instead.
A menu or a popover can be presented, whichever fits best.
Declaration
Objective-C
PSPDFContextMenuOptionAllowPopovers
Swift
case allowPopovers = 1
-
Deprecated
Deprecated in PSPDFKit 12.3 for iOS. Use one of the ‘PDFPageView.select(…:presentMenu:animated:)’ methods instead.
Only a popover can be presented. No menu will be presented.
Declaration
Objective-C
PSPDFContextMenuOptionPopoversOnly
Swift
case popoversOnly = 2