I am trying to get notified if the user swipes up or down on the viewpager. View Pager is showing a list of data coming from an API.
I have been through few answers here on SO including this but they seems a little complex and have very little explanation or are outdated. I am trying to understand are there any other ways to solve this in current scenario using Kotlin.
Would like to know if there are any pre defined methods in ViewPager or what should be my approach to tackle this.