SettingSlider

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.

defaultValue

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.

allowOverride

Whether the user can use values outside the range.

Constructors

Link copied to clipboard
constructor(title: String, key: String, summary: String? = null, defaultValue: Int? = null, from: Int, to: Int, steps: Int? = null, allowOverride: Boolean = false)

Properties

Link copied to clipboard
val allowOverride: Boolean = false
Link copied to clipboard
val defaultValue: Int? = null
Link copied to clipboard
val from: Int
Link copied to clipboard
open override val key: String
Link copied to clipboard
val steps: Int? = null
Link copied to clipboard
val summary: String? = null
Link copied to clipboard
open override val title: String
Link copied to clipboard
val to: Int