micro_utils.dokka
0.19.2
common
micro_utils.dokka
/
dev.inmo.micro_utils.selector
/
Selector
Selector
interface
Selector
<
T
>
Unified interface which can be used in any system which require some selection functionality
Inheritors
SingleSelector
MultipleSelector
Members
Members & Extensions
Functions
clear
Selection
Link copied to clipboard
abstract
suspend
fun
clearSelection
(
)
contains
Link copied to clipboard
inline operator
fun
<
T
>
Selector
<
T
>
.
contains
(
element
:
T
)
:
Boolean
force
Deselect
Link copied to clipboard
abstract
suspend
fun
forceDeselect
(
element
:
T
)
force
Deselect
Link copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
forceDeselect
(
elements
:
List
<
T
>
)
inline suspend
fun
<
T
>
Selector
<
T
>
.
forceDeselect
(
firstElement
:
T
,
vararg
elements
:
T
)
force
Select
Link copied to clipboard
abstract
suspend
fun
forceSelect
(
element
:
T
)
force
Select
Link copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
forceSelect
(
elements
:
List
<
T
>
)
inline suspend
fun
<
T
>
Selector
<
T
>
.
forceSelect
(
firstElement
:
T
,
vararg
elements
:
T
)
item
Selection
Flow
Link copied to clipboard
fun
<
T
>
Selector
<
T
>
.
itemSelectionFlow
(
element
:
T
,
scope
:
CoroutineScope
)
:
SharedFlow
<
Boolean
>
nothing
Selected
Link copied to clipboard
inline
fun
<
T
>
Selector
<
T
>
.
nothingSelected
(
)
:
Boolean
toggle
Selection
Link copied to clipboard
abstract
suspend
fun
toggleSelection
(
element
:
T
)
toggle
Selection
Link copied to clipboard
inline suspend
fun
<
T
>
Selector
<
T
>
.
toggleSelection
(
elements
:
List
<
T
>
)
inline suspend
fun
<
T
>
Selector
<
T
>
.
toggleSelection
(
firstElement
:
T
,
vararg
elements
:
T
)
Properties
item
Selected
Link copied to clipboard
abstract
val
itemSelected
:
SharedFlow
<
T
>
item
Unselected
Link copied to clipboard
abstract
val
itemUnselected
:
SharedFlow
<
T
>
selected
Items
Link copied to clipboard
abstract
val
selectedItems
:
List
<
T
>