Setting Slider
data class SettingSlider(val title: String, val key: String, val summary: String? = null, val defaultValue: Int? = null, val from: Int, val to: Int, val steps: Int? = null, val allowOverride: Boolean = false) : Setting
A slider that allows the user to select a value from a range. Use allowOverride to allow the user to use values outside the range. Value can be accessed from Settings.getInt
Parameters
title
The title of the setting.
key
The key of the setting.
summary
The summary of the setting.
default Value
The default value of the setting.
from
The minimum value of the slider.
to
The maximum value of the slider.
steps
The number of steps between the minimum and maximum values, if null, the slider will be continuous.
allow Override
Whether the user can use values outside the range.