Android Ui Selectors/Scrollable help

Hello everyone,

I’m trying to create a generic method to flingToBeginning. Below is my attempt to find a UiScrollable element, but it does not work. The UiSelector part works, but the UiScrollable doesn’t. Any idea why?

new UiScrollable(new UiSelector().className("android.widget.ListView"));

Ideally what I want is to do the below - Is that the correct syntax?

new UiSelector().className("android.widget.ListView").flingToBeginning(10);