SASReport

public protocol SASReport : AnyObject

Public Interface to a SASReport

Since

since 8.22
  • The name of this report.

    Since

    since 8.22

    Declaration

    Swift

    var name: String! { get }
  • The report’s location on the server.

    Since

    since 8.22

    Declaration

    Swift

    var location: String! { get }
  • The report’s unique identifier.

    Since

    since 8.22

    Declaration

    Swift

    var identifier: String! { get }
  • The description of this report as provided by the author.

    Since

    since 8.22

    Declaration

    Swift

    var description: String! { get }
  • The date this report was created.

    Since

    since 8.22

    Declaration

    Swift

    var dateCreated: Date! { get }
  • The date this report was last updated.

    Since

    since 8.22

    Declaration

    Swift

    var dateUpdated: Date! { get }
  • The author of this report.

    Since

    since 8.22

    Declaration

    Swift

    var author: String! { get }
  • If there is a preview for this report, the preview image is retrieved.

    Since

    since 8.22

    Declaration

    Swift

    var thumbnail: UIImage? { get }
  • Convenience method to acquire a SASReportDescriptor for this report.

    Since

    since 8.22

    Declaration

    Swift

    var descriptor: SASReportDescriptor! { get }
  • Create a SASReportViewController instance for a SASReport.

    Since

    since 8.22

    Declaration

    Swift

    func createViewController() -> SASReportViewController

    Parameters

    report

    The report to generate a view controller for.

    Return Value

    A SASReportViewController instance.

  • Check on the server, and download any updates available for this report.

    Since

    since 8.33

    Declaration

    Swift

    func update(_ completion : @escaping (_ error : NSError?) -> Void)

    Parameters

    completion

    completion block called when the update check is done.