SASManager
@objc public class SASManager : NSObject
The SASManager class.
The singleton object that is used for global SAS platform operations.
Since
since 8.22-
The shared singleton instance of the SASManager. This is initalized on
initSASManager
.Since
since 8.22Declaration
Swift
static public var shared : SASManager
-
The manager delegate object. This is initalized when
SASManager.initialize
is called.Since
since 8.22Declaration
Swift
public private(set) var managerDelegate : SASManagerDelegate!
-
Verify and gather metadata for a SASServer from a URL.
Declaration
Swift
public func verifySASServer(_ serverURL : URL, completion : @escaping (SASServer?, NSError?) -> Void) -> Void
Parameters
serverURL
The URL for the SASServer
completion
Makes a callback when the operation is complete. Either the server parameter, or the error will be nil (but not both)
-
Gets all known SASServers. The SASManager retains server information across sessions. This API returns all loaded SASServers.
Declaration
Swift
public var servers : [SASServer]
-
Removes this server from the list of tracked servers.
Since
since 8.22Declaration
Swift
public func removeServer(server:SASServer)
Parameters
server
The server to remove
-
Main entry point for the SASManager. This method must be called by applications before calling any API from the SASKit framework.
Declaration
Swift
public static func initialize( delegate : SASManagerDelegate, completion : @escaping (NSError?) -> Void )
Parameters
delegate
The SASManagerDelegate for this application.
completion
Called when the SASManager is finished initalizing. All SASKit functionality is invalid (and SAS API behavior is undefined) until this completion block is called.