Toolbox
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Toolbox
ui
/
com.michaelflisar.toolbox.feature.selection
/
SelectionState
Selection
State
@
Stable
class
SelectionState
<
ID
>
(
allIdsFlow
:
StateFlow
<
Set
<
ID
>
>
,
scope
:
CoroutineScope
)
Members
Constructors
Selection
State
Link copied to clipboard
constructor
(
allIdsFlow
:
StateFlow
<
Set
<
ID
>
>
,
scope
:
CoroutineScope
)
Properties
is
All
Selected
Link copied to clipboard
val
isAllSelected
:
Boolean
is
Something
Selected
Link copied to clipboard
val
isSomethingSelected
:
Boolean
selected
Link copied to clipboard
val
selected
:
Set
<
ID
>
selected
Count
Link copied to clipboard
val
selectedCount
:
Int
total
Count
Link copied to clipboard
val
totalCount
:
Int
visible
Link copied to clipboard
val
visible
:
Boolean
Functions
clear
Link copied to clipboard
fun
clear
(
)
clear
And
Close
Link copied to clipboard
fun
clearAndClose
(
)
deselect
Link copied to clipboard
fun
deselect
(
id
:
ID
)
invert
Link copied to clipboard
fun
invert
(
)
is
Selected
Link copied to clipboard
fun
isSelected
(
id
:
ID
)
:
Boolean
select
Link copied to clipboard
fun
select
(
id
:
ID
)
fun
select
(
id
:
ID
,
selected
:
Boolean
)
select
All
Link copied to clipboard
fun
selectAll
(
)
set
Link copied to clipboard
fun
set
(
ids
:
Collection
<
ID
>
)
show
Link copied to clipboard
fun
show
(
)
toggle
Link copied to clipboard
fun
toggle
(
id
:
ID
)