SASReportViewController

@objc
public protocol SASReportViewController : NSObjectProtocol

SASReportViewController protocol. Swift does not allow return types of a specialized class, and it cannot return a UIViewController. Therefore it returns a SASReportViewController protocol. This protocol provides an instance of UIViewController that you can add to your app’s user interface.

Since

since 8.22
  • The UIViewController for this report.

    Since

    since 8.22

    Declaration

    Swift

    var viewController: UIViewController { get }
  • The delegate for this controller.

    Since

    since 2023.3.0

    Declaration

    Swift

    var delegate: SASReportViewControllerDelegate? { get set }
  • Hides or shows the tray component.

    Since

    since 8.33

    Declaration

    Swift

    var isTrayEnabled: Bool { get set }
  • Current page’s title in this report

    Since

    since 2023.3.0

    Declaration

    Swift

    var currentPageTitle: String { get }
  • Returns the UIViewController for the pages in this report.

    Since

    since 2023.3.0

    Declaration

    Swift

    func getTableOfContentsViewController() -> UIViewController
  • Go to Page number index

    Since

    since 2023.3.0

    Declaration

    Swift

    func navigateToPage(index: Int)
  • Current page’s screenshot in this report

    Since

    since 2023.3.0

    Declaration

    Swift

    var currentPageScreenshot: UIImage? { get }