ripe / com.ripe.android.base / Ripe / config
config
@JvmOverloads suspend fun config(brand: String?, model: String?, options: Map<String, Any> = HashMap()): Unit
Sets the model to be customised.
The options map supports the following keys:
- variant - The variant of the model.
- version - The version of the build in use.
- parts - The initial parts of the model.
- country - The country where the model will be sold.
- currency - The currency that should be used to calculate the price.
- locale - The locale to be used by default when localizing values.
- flag - A specific attribute of the model.
- useDefaults - If the default parts of the model should be used when no initials parts are set.
- usePrice - If the price should be automatically retrieved whenever there is a customization change.