View Code? Open in Web Editor
NEW
Add standard Collection from Kotlin with elements listeners
observablecollection's Introduction
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() { ... }
observablecollection's People
Contributors
Watchers