SliderState

class SliderState(value: Float = 0.0f, valueRange: ClosedFloatingPointRange<Float> = 0f..1f)(source)

Holds the value and range for a TV slider.

Parameters

value

the initial slider value, constrained to valueRange

valueRange

the range of values available to the slider

Constructors

Link copied to clipboard
constructor(value: Float = 0.0f, valueRange: ClosedFloatingPointRange<Float> = 0f..1f)

Properties

Link copied to clipboard

The current value's fraction within valueRange.

Link copied to clipboard

Whether the user is holding Left or Right to scrub.

Link copied to clipboard

The current slider value, constrained to valueRange.

Link copied to clipboard

The range of values available to the slider.