addDocumentScrollListener

open fun addDocumentScrollListener(documentScrollListener: DocumentScrollListener)

Adds a DocumentScrollListener for listening to scrolling events on the document. If the listener has already been added previously, this method will be a no-op. Listeners registered with this method will be unregistered automatically in .onDetach. Passing null is not allowed, and will result in an exception.

Parameters

documentScrollListener

Listener to be notified of document scroll events. May not be null.

See also

.removeDocumentScrollListener