ConstructorIoConfig

data class ConstructorIoConfig(    val apiKey: String,     val serviceUrl: String = BuildConfig.SERVICE_URL,     val quizzesServiceUrl: String = BuildConfig.QUIZZES_SERVICE_URL,     val segments: List<String> = emptyList(),     val testCells: List<Pair<String, String>> = emptyList(),     val autocompleteResultCount: Map<String, Int> = mapOf(Constants.QueryValues.SEARCH_SUGGESTIONS to 10, Constants.QueryValues.PRODUCTS to 0),     val defaultItemSection: String = BuildConfig.DEFAULT_ITEM_SECTION,     val servicePort: Int = BuildConfig.SERVICE_PORT,     val serviceScheme: String = BuildConfig.SERVICE_SCHEME,     val defaultAnalyticsTags: Map<String, String> = emptyMap())

Encapsulates configuration options for the Constructor SDK client

Constructors

Link copied to clipboard
fun ConstructorIoConfig(    apiKey: String,     serviceUrl: String = BuildConfig.SERVICE_URL,     quizzesServiceUrl: String = BuildConfig.QUIZZES_SERVICE_URL,     segments: List<String> = emptyList(),     testCells: List<Pair<String, String>> = emptyList(),     autocompleteResultCount: Map<String, Int> = mapOf(Constants.QueryValues.SEARCH_SUGGESTIONS to 10, Constants.QueryValues.PRODUCTS to 0),     defaultItemSection: String = BuildConfig.DEFAULT_ITEM_SECTION,     servicePort: Int = BuildConfig.SERVICE_PORT,     serviceScheme: String = BuildConfig.SERVICE_SCHEME,     defaultAnalyticsTags: Map<String, String> = emptyMap())

Properties

Link copied to clipboard
val apiKey: String

Constructor.io API key

Link copied to clipboard
val autocompleteResultCount: Map<String, Int>

The number of results to return per section when requesting autocomplete results

Link copied to clipboard
val defaultAnalyticsTags: Map<String, String>

Additional analytics tags to pass. Will be merged with analytics tags passed on the request level

Link copied to clipboard
val defaultItemSection: String

The item section when requesting data and sending tracking events (defaults to "Products")

Link copied to clipboard
val quizzesServiceUrl: String
Link copied to clipboard
val segments: List<String>

Arbitrary customer defined user segments

Link copied to clipboard
val servicePort: Int

The port to use (for testing purposes only, defaults to 443)

Link copied to clipboard
val serviceScheme: String

The scheme to use (for testing purposes only, defaults to HTTPS)

Link copied to clipboard
val serviceUrl: String

Constructor.io service URL (defaults to "ac.cnstrc.com")

Link copied to clipboard
val testCells: List<Pair<String, String>>

Test cell name/value pairs if A/B testing