SASManagerDelegate
@objc public protocol SASManagerDelegate
SASManagerDelegate protocol.
This is the protocol that must be implemented by all applications that use the SASManager.
Since
since 8.22-
The name of this application
The SASManager uses this string to identify the application to the SAS Server.
Since
since 8.22Declaration
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.22Declaration
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.22Declaration
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
orClose
). -
Override the default storage of passwords on the device keychain by the SAS Manager.
Since
since 8.22Declaration
Swift
@objc optional func getKeychainDelegate() -> SASKeychainDelegate?
Return Value
Optional override of the keychain delegate. If this is nil, the SAS Manager will store passwords on the device keychain.
-
Override the default network verification and communication by the SAS Manager.
Since
since 8.22Declaration
Swift
@objc optional func getNetworkDelegate() -> SASNetworkDelegate?
Return Value
Optional override of the network delegate. If this is nil, the SAS Manager handles default network communications.
-
Override the default implementation of file input and output by the SAS Manager.
Since
since 8.22Declaration
Swift
@objc optional func getFileSystemDelegate() -> SASFileSystemDelegate?
Return Value
An optional override of the file system delegate. All input and output by the SAS Manager is managed through this delegate.
-
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.3Declaration
Swift
@objc optional func getDefaultServerConfiguration() -> Data