PSPDFUserInterfaceControls
Objective-C
@protocol PSPDFUserInterfaceControls <NSObject>
Swift
protocol UserInterfaceControls : NSObjectProtocol
Protocol handling the user interface.
-
Defines if the user interface should be shown.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL shouldShowControls;
Swift
var shouldShowControls: Bool { get }
-
Hides the user interface.
Declaration
Objective-C
- (BOOL)hideControlsAnimated:(BOOL)animated;
Swift
func hide(animated: Bool) -> Bool
-
Hides the user interface and additional elements like page selection.
Declaration
Objective-C
- (BOOL)hideControlsAndPageElementsAnimated:(BOOL)animated;
Swift
func hideAndPageElements(animated: Bool) -> Bool
-
Toggles the visibility state of the user interface.
Declaration
Objective-C
- (BOOL)toggleControlsAnimated:(BOOL)animated;
Swift
func toggle(animated: Bool) -> Bool
-
Shows the user interface.
Declaration
Objective-C
- (BOOL)showControlsAnimated:(BOOL)animated;
Swift
func show(animated: Bool) -> Bool
-
Show menu if annotation/text is selected.
Declaration
Objective-C
- (void)showMenuIfSelectedWithOption:(PSPDFContextMenuOption)contextMenuOption animated:(BOOL)animated;
Swift
func showMenuIfSelected(with contextMenuOption: ContextMenuOption, animated: Bool)