AgsCore
public class AgsCore
AeroGear Core SDK Internal SDK to be used directly by SDK modules
-
Undocumented
Declaration
Swift
public static let instance: AgsCore
-
Undocumented
Declaration
Swift
public init()
-
Get single configuration for specific service type
Declaration
Swift
public func getConfiguration(_ serviceType: String) -> MobileService?
Parameters
serviceType
service type that will be used to fetch configuration
Return Value
MobileService instance or nil if configuration is missing service of that type
-
Get configuration for specific service reference
Declaration
Swift
public func getConfigurationById(_ serviceId: String) -> MobileService?
Parameters
serviceId
id that will be used to fetch configuration
Return Value
MobileService instance or nil if configuration is missing service of that type
-
Get instance of http interface
Declaration
Swift
public func getHttp() -> AgsHttpRequest
Return Value
instance of network interface
-
Allows to retrieve metrics protocol to interact with application metrics.
Declaration
Swift
public func getMetrics() -> AgsMetrics
Return Value
Metrics protocol to interact with metrics
-
Logger instance used for logging across SDK’s
Declaration
Swift
public static var logger: AgsLoggable
-
Provides way do dynamically change logger implementation
Declaration
Swift
public static func setLogger(newLogger: AgsLoggable)
Parameters
newLogger
new logger implementation
-
Returns metadata for SDK including version
Declaration
Swift
public static func getMetadata() -> AgsMetaData