SASManagerDelegate

@objc
public protocol SASManagerDelegate : NSObjectProtocol

SASManagerDelegate protocol.

This is the protocol that must be implemented by all applications that use the SASManager.

Since

since 8.22
  • When a report is open (either there is an instance of SASReportViewController or SASReportObject the system will check for updates to the data in the report. Report updates will be reported in the SASReportDelegate.dataUpdated() method

    Since

    since 26.0.0

    Declaration

    Swift

    @objc
    optional func shouldCheckForUpdatesOnOpenReports() -> Bool
  • The name of this application

    The SASManager uses this string to identify the application to the SAS Server.

    Since

    since 8.22

    Declaration

    Swift

    @objc
    optional func getApplicationName() -> String

    Return Value

    The application name as a String.

  • The Application Version as a string

    The SASManager uses this string to identify the application to the SAS Server.

    Since

    since 8.22

    Declaration

    Swift

    @objc
    optional func getApplicationVersion() -> String

    Return Value

    The current App version as a String.

  • Shows an alert to the user.

    This method allows the SAS Manager to alert the user.

    Since

    since 8.22

    Declaration

    Swift

    @objc
    optional func showAlert(withTitle: String?, message: String?, buttonTitle: String?)

    Parameters

    withTitle

    The title for the alert.

    message

    A detailed message for the user.

    buttonTitle

    Text for the button on the alert (could be “OK” or “Close”).

  • Return a data encoding of a server configuration for the SAS Manager. This will be used on the first startup of the SAS Manager to pre-load a default set of reports from a server.

    The format of the data should match the following:

    {
        "servers": [
        {
            "reportPaths": [
                "/reports/reports/faca01f6-c631-4cbf-b336-6ba186dc632e",
                "/reports/reports/1ccd88c8-38a6-4473-90e0-8bdb447510a4",
                "/reports/reports/03db38a7-ff39-460e-9aca-3ee108c10140",
                "/reports/reports/cd4205df-44a8-448a-a174-765f89abe058"
            ],
            "serverHostName": "tbub.sas.com",
            "serverPort": 443,
            "useGuestMode": true,
            "useSSL": true,
            "serverDescription" : "_i18n:sas_demo_server",
            "isDemo" : true
        }]
    }
    

    Since

    since 8.3

    Declaration

    Swift

    @objc
    optional func getDefaultServerConfiguration() -> Data
  • If the manager is reloaded, then this function will notify the delegate so that an app can adapt to the change.

    Since

    since 27.0.1

    Declaration

    Swift

    @objc
    optional func sasManagerReloaded()