{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ProgressBarRangeInfo

public final class ProgressBarRangeInfo


Accessibility range information, to represent the status of a progress bar or seekable progress bar.

Summary

Nested types

public static class ProgressBarRangeInfo.Companion

Public constructors

ProgressBarRangeInfo(
    float current,
    @NonNull ClosedFloatingPointRange<@NonNull Float> range,
    int steps
)

Public methods

boolean
equals(Object other)
final float

current value in the range.

final @NonNull ClosedFloatingPointRange<@NonNull Float>

range of this node

final int

if greater than 0, specifies the number of discrete values, evenly distributed between across the whole value range.

int
@NonNull String

Public constructors

ProgressBarRangeInfo

public ProgressBarRangeInfo(
    float current,
    @NonNull ClosedFloatingPointRange<@NonNull Float> range,
    int steps
)
Parameters
float current

current value in the range. Must not be NaN.

@NonNull ClosedFloatingPointRange<@NonNull Float> range

range of this node

int steps

if greater than 0, specifies the number of discrete values, evenly distributed between across the whole value range. If 0, any value from the range specified can be chosen. Cannot be less than 0.

Public methods

equals

public boolean equals(Object other)

getCurrent

public final float getCurrent()

current value in the range. Must not be NaN.

getRange

public final @NonNull ClosedFloatingPointRange<@NonNull FloatgetRange()

range of this node

getSteps

public final int getSteps()

if greater than 0, specifies the number of discrete values, evenly distributed between across the whole value range. If 0, any value from the range specified can be chosen. Cannot be less than 0.

hashCode

public int hashCode()

toString

public @NonNull String toString()