SMICoreFactory

Objective-C

@protocol SMICoreFactory

Swift

protocol CoreFactoryProtocol

This factory class allows you to create an instance of SMICoreClient using an SMICoreConfiguration config object.

  • Returns an SMICoreClient object for a given configuration.

    This method returns the same instance of SMICoreClient if the configuration object does not change. However, if passed in a different configuration object, the existing core is stopped, deallocated, and a new core is returned. Call this method any time your configuration has changed, and then update any references to the SMICoreClient object that this method returns.

    Declaration

    Objective-C

    + (nonnull id<SMICoreClient>)createWithConfig:
        (nonnull SMICoreConfiguration *)config;

    Swift

    static func create(withConfig config: SMICoreConfiguration) -> any CoreClient

    Parameters

    config

    The SMICoreConfiguration configuration object that determines the behavior of SMICoreClient.

    Return Value

    The SMICoreClient object instantiated with the config object.