BMSClient
public class BMSClient
A singleton that serves as the entry point to Bluemix client-server communication.
-
The region where your Bluemix service is hosted.
See moreDeclaration
Swift
public struct Region
-
The singleton that is used for all
BMSClient
activity.Declaration
Swift
public static let sharedInstance = BMSClient()
-
Specifies the base Bluemix application backend URL.
Declaration
Swift
public private(set) var bluemixAppRoute: String?
-
Specifies the region where the Bluemix service is hosted.
Declaration
Swift
public private(set) var bluemixRegion: String?
-
Specifies the Bluemix application backend identifier.
Declaration
Swift
public private(set) var bluemixAppGUID: String?
-
Specifies the allowed timeout (in seconds) for all
Request
network requests.Declaration
Swift
public var requestTimeout: Double = 20.0
-
The required intializer for the
BMSClient
class.Call this method on
BMSClient.sharedInstance
.Note
The
backendAppRoute
andbackendAppGUID
parameters are not required; they are only used for making network requests to the Bluemix server using theRequest
class.Declaration
Swift
public func initialize(bluemixAppRoute: String? = nil, bluemixAppGUID: String? = nil, bluemixRegion: String...)
Parameters
backendAppRoute
(Optional) The base URL for the authorization server.
backendAppGUID
(Optional) The GUID of the Bluemix application.
bluemixRegion
The region where your Bluemix application is hosted. Use one of the
BMSClient.Region
constants.