SystemaOnParentScrollChangeListener

class SystemaOnParentScrollChangeListener(systema: SystemaAI, tagMapping: Map<String, Int>, dispatcher: CoroutineDispatcher, callback: (Result<HttpResponse>) -> Unit) : SystemaCompositeListener<View.OnScrollChangeListener> , View.OnScrollChangeListener

This listener monitors parent's scroll change events and invoke container shown on the child container if appropriate

This is because in order to catch container shown event of the child, we actually need to monitor scroll change of the parent view.

Constructors

SystemaOnParentScrollChangeListener
Link copied to clipboard
fun SystemaOnParentScrollChangeListener(systema: SystemaAI, tagMapping: Map<String, Int>, dispatcher: CoroutineDispatcher = Dispatchers.IO, callback: (Result<HttpResponse>) -> Unit = {})

Functions

addChildContainer
Link copied to clipboard
fun addChildContainer(recContainer: View)
addListener
Link copied to clipboard
addListeners
Link copied to clipboard
clearAll
Link copied to clipboard
fun clearAll()
getChildContainers
Link copied to clipboard
fun getChildContainers(): List<View>
getListeners
Link copied to clipboard
fun getListeners(): List<View.OnScrollChangeListener>
onScrollChange
Link copied to clipboard
open override fun onScrollChange(containerParent: View?, scrollX: Int, scrollY: Int, oldScrollX: Int, oldScrollY: Int)
removeChildContainer
Link copied to clipboard
fun removeChildContainer(recContainer: View)
removeListener
Link copied to clipboard
fun removeListener(listener: View.OnScrollChangeListener): View.OnScrollChangeListener?