SystemaOnParentScrollChangeListener

class SystemaOnParentScrollChangeListener(recContainer: View, 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(recContainer: View, systema: SystemaAI, tagMapping: Map<String, Int>, dispatcher: CoroutineDispatcher = Dispatchers.IO, callback: (Result<HttpResponse>) -> Unit)

Functions

addListener
Link copied to clipboard
addListeners
Link copied to clipboard
clearAll
Link copied to clipboard
fun clearAll()
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)
removeListener
Link copied to clipboard
fun removeListener(index: Int = -1): View.OnScrollChangeListener?