SMICoreConfiguration
Objective-C
@interface SMICoreConfiguration : NSObject <NSCopying>
Swift
class Configuration : NSObject, NSCopying
This class stores configuration information that is necessary when creating an SMICoreClient
instance using the SMICoreFactory
class.
-
The base endpoint we are connecting to for all API requests.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSURL *_Nonnull serviceAPI;
Swift
var serviceAPI: URL { get }
-
The 15 character Salesforce org ID.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSString *_Nonnull organizationId;
Swift
var organizationId: String { get }
-
The API Name for the embedded service deployment associated with this configuration.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSString *_Nonnull developerName;
Swift
var developerName: String { get }
-
Unavailable
This constructor is not available.
Declaration
Objective-C
- (nonnull instancetype)init;
-
Creates a configuration object that can be used to instantiate an
SMICoreClient
object usingSMICoreFactory
.Declaration
Objective-C
- (nonnull instancetype)initWithURL:(nonnull NSURL *)url;
Swift
init(url: URL)
Parameters
url
The URL to the JSON config file.
-
Creates a configuration object that can be used to instantiate an
SMICoreClient
object usingSMICoreFactory
.Declaration
Objective-C
- (nonnull instancetype)initWithServiceAPI:(nonnull NSURL *)serviceAPI organizationId:(nonnull NSString *)organizationId developerName:(nonnull NSString *)developerName;
Swift
init(serviceAPI: URL, organizationId: String, developerName: String)
Parameters
serviceAPI
The base endpoint we are connecting to for all API requests.
organizationId
The Salesforce org ID.
developerName
The API Name for the embedded service deployment associated with this configuration.