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
BMSClientactivity.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
Requestnetwork requests.Declaration
Swift
public var requestTimeout: Double = 20.0
-
The required intializer for the
BMSClientclass.Call this method on
BMSClient.sharedInstance.Note
The
backendAppRouteandbackendAppGUIDparameters are not required; they are only used for making network requests to the Bluemix server using theRequestclass.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.
bluemixRegionThe region where your Bluemix application is hosted. Use one of the
BMSClient.Regionconstants.
View on GitHub
BMSClient Class Reference