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