build

open fun build(@Nullable completionCallback: CompletionCallback)

Check, build and save the SDk configuration.

This method will decrypt the configuration data in order to find the URL of the webservice, Download the Zip and retrieve the conf service and the certificate.

Parameters

completionCallback

This callback will be invoked to handle operation result :

  • Success : The SDK configuration has been loaded successfully
  • Error : an error occurred when trying to load SDK configuration.

Throws

com.streamwide.smartms.lib.core.exception.MissedConfigurationException

if any required parameter is missing.


open fun build(@Nullable completionCallback: CompletionCallback, @Nullable lifecycle: Lifecycle)

Check, build and save the SDk configuration.

This method will decrypt the configuration data in order to find the URL of the webservice, Download the Zip and retrieve the conf service and the certificate.

Parameters

completionCallback

This callback will be invoked to handle operation result.

  • Success : The SDK configuration has been loaded successfully
  • Error : an error occurred when trying to load SDK configuration.
lifecycle

The life cycle of the caller, if it's not null the callback will be invoked with lifecycle aware.

Throws

com.streamwide.smartms.lib.core.exception.MissedConfigurationException

if any required parameter is missing.