Kindling
Toggle table of contents
SNAPSHOT
common
Target filter
common
Switch theme
Search in API
Skip to content
Kindling
core
/
dev.kindling.core.utils
/
KCounter
KCounter
class
KCounter
(
initialValue
:
Int
=
0
,
val
min
:
Int
=
Int.MIN_VALUE
,
val
max
:
Int
=
Int.MAX_VALUE
,
val
step
:
Int
=
1
)
(
source
)
Members
Constructors
KCounter
Link copied to clipboard
constructor
(
initialValue
:
Int
=
0
,
min
:
Int
=
Int.MIN_VALUE
,
max
:
Int
=
Int.MAX_VALUE
,
step
:
Int
=
1
)
Properties
count
Link copied to clipboard
val
count
:
Int
max
Link copied to clipboard
val
max
:
Int
min
Link copied to clipboard
val
min
:
Int
state
Link copied to clipboard
val
state
:
StateFlow
<
Int
>
step
Link copied to clipboard
val
step
:
Int
Functions
decrement
Link copied to clipboard
fun
decrement
(
)
increment
Link copied to clipboard
fun
increment
(
)
reset
Link copied to clipboard
fun
reset
(
)
set
Link copied to clipboard
fun
set
(
value
:
Int
)