PSPDFOutlineViewControllerDelegate

@protocol PSPDFOutlineViewControllerDelegate <PSPDFOverridable>

Delegate for the PSPDFOutlineViewController.

  • Called when a outline element cell is tapped.

    Declaration

    Objective-C

    - (BOOL)outlineController:
                (nonnull PSPDFOutlineViewController *)outlineController
              didTapAtElement:(nonnull PSPDFOutlineElement *)outlineElement;

    Swift

    func outlineController(_ outlineController: PSPDFOutlineViewController, didTapAt outlineElement: PSPDFOutlineElement) -> Bool

    Parameters

    outlineController

    Corresponding PSPDFOutlineViewController.

    outlineElement

    Tapped outline element.

    Return Value

    Return NO if no action was executed, which will then call outlineCellDidTapDisclosureButton: if the element is expandable. Return YES if an action was executed and no further methods should be called.