HorizontalScrollEventsController

A controller that can be passed as com.facebook.litho.annotations.Prop to a [ ] to trigger events from outside the component hierarchy.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun scrollTo(x: Int)
Link copied to clipboard

This method will scroll the view to the left or right depending on the layout direction and give the focus to the leftmost/ rightmost component in the new visible area. If no component is a good candidate for focus, this scrollview reclaims the focus.

Link copied to clipboard
Link copied to clipboard