Repository files navigation
packgage com.pelewkurzony.observable_collection.ObservableMutableList
It provides listeners for MutableList<T>
onChange (MutableList<Any?>, T, T) -> Unit)
onAdd (MutableList<Any?>, Collection<T>) -> Unit
onRemove (MutableList<Any?>, Collection<T>) -> Unit
onClear (MutableList<Any?>) -> Unit
It provides functions to change listeners in MutableList <T>
OnChange
fun addOnChangeListener(onChange: (MutableList<Any?>, T, T) -> Unit) { ... }
fun removeOnChangeListener() { ... }
OnAdd
fun addOnAddListener(onAdd: (MutableList<Any?>, Collection<T>) -> Unit) { ... }
fun removeOnAddListener() { ... }
OnRemove
fun addOnRemoveListener(onRemove: (MutableList<Any?>, Collection<T?>) -> Unit) { ... }
fun removeOnRemoveListener() { ... }
OnClear
fun addOnClearListener(onClear: (MutableList<Any?>) -> Unit) { ... }
fun removeOnClearListener() { ... }
About
Add standard Collection from Kotlin with elements listeners
Topics
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.