Forum Xamarin.iOS

How to achieve Java.Lang.IRunnable in Xamarin iOS

I want to identify the scroll end action, which could not be achieved through the existing APIs from ScrollView. Because, when we scrolled fast, event after the pointer/hand is taken, certain scrolling is took place on its own. My requirement is to catch the point when the scrolling is ended on its own.

I can achieve this scenario in Xamarin.Android implementing Java.Lang.IRunnable in a custom class and by using the Run() method in it. I need to achieve this in Xamarin iOS.

Could you please provide a valid suggestion/idea/answer for this query ?

Answers

  • ColeXColeX Member, Xamarin Team Xamurai

    Are you developing Xamarin.Forms or Xamarin.iOS ?

  • ArunPrasad.007ArunPrasad.007 USMember ✭✭

    As i mentioned already, its Xamarin.iOS

  • ColeXColeX Member, Xamarin Team Xamurai
    edited November 2018

    Take a look at bounces.

    If the value of this property is YES, the scroll view bounces when it encounters a boundary of the content. Bouncing visually indicates that scrolling has reached an edge of the content. If the value is NO, scrolling stops immediately at the content boundary without bouncing. The default value is YES.

    I think you can set this property to false , and detect the event Scrolled of ScrollView.

Sign In or Register to comment.