configure

open fun configure(@NonNull context: Context, @IntRange(from = 1) siteID: Int, @NonNull baseURL: String)

Configures the SDK with the given Context, siteId and baseUrl.

Deprecated

This method is deprecated, use configure(Context, int) instead. If you need to manually override the base URL, please use the setManualBaseUrl() setter method.

Parameters

context

The application context.


open fun configure(@NonNull context: Context, @IntRange(from = 1) siteID: Int)

Configures the SDK with the given Context and SiteID.

Parameters

context

The application context.

siteID

The siteId used by your application. If you don't know your siteId, please contact your sales house which can retrieve them from its Smart account (sites &pages).

Throws

SCSConfiguration.ConfigurationException