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 }
  • Indicates whether this configuration requires user verification.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readonly,
              getter=isUserVerificationRequired) BOOL userVerificationRequired;

    Swift

    var isUserVerificationRequired: Bool { 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 using SMICoreFactory.

    Declaration

    Objective-C

    - (nullable instancetype)initWithURL:(nonnull NSURL *)url;

    Swift

    convenience 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 using SMICoreFactory.

    Declaration

    Objective-C

    - (nullable instancetype)initWithURL:(nonnull NSURL *)url
                userVerificationRequired:(BOOL)userVerificationRequired;

    Swift

    convenience init?(url: URL, userVerificationRequired: Bool)

    Parameters

    url

    The URL to the JSON config file.

    userVerificationRequired

    Whether or not authorization connections are intended to be configured for User Verification.

  • Creates a configuration object that can be used to instantiate an SMICoreClient object using SMICoreFactory.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithServiceAPI:(nonnull NSURL *)serviceAPI
                                organizationId:(nonnull NSString *)organizationId
                                 developerName:(nonnull NSString *)developerName;

    Swift

    convenience 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.

  • Creates a configuration object that can be used to instantiate an SMICoreClient object using SMICoreFactory.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithServiceAPI:(nonnull NSURL *)serviceAPI
                                organizationId:(nonnull NSString *)organizationId
                                 developerName:(nonnull NSString *)developerName
                      userVerificationRequired:(BOOL)userVerificationRequired;

    Swift

    init(serviceAPI: URL, organizationId: String, developerName: String, userVerificationRequired: Bool)

    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.

    userVerificationRequired

    Whether or not authorization connections are intended to be configured for User Verification.