setRange

open fun setRange(start: Int, end: Int)

Set the range of numbers allowed for the number picker. The current value will be automatically set to the start.

Parameters

start

the start of the range (inclusive)

end

the end of the range (inclusive)


open fun setRange(start: Int, end: Int, displayedValues: Array<String>)

Set the range of numbers allowed for the number picker. The current value will be automatically set to the start. Also provide a mapping for values used to display to the user.

Parameters

start

the start of the range (inclusive)

end

the end of the range (inclusive)

displayedValues

the values displayed to the user.