PSPDFUserInterfaceControls

@protocol PSPDFUserInterfaceControls <NSObject>

Protocol handling the user interface.

  • Defines if the user interface should be shown.

    Declaration

    Objective-C

    @property (readonly, nonatomic) 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
  • Shows a menu if something (e.g. an annotation) is selected.

    Declaration

    Objective-C

    - (void)showMenuIfSelectedAnimated:(BOOL)animated
                         allowPopovers:(BOOL)allowPopovers;

    Swift

    func showMenuIfSelected(animated: Bool, allowPopovers: Bool)