Ok so I thought more about it. Dropping support fo...
# announcements
r
Ok so I thought more about it. Dropping support for Strings and saying that every subclass prototype will be roughly the same, I've got this:
Copy code
abstract class ViewPagerPage<T : ViewPagerPage<T>>(
    private val context: Context,
    private val titlesRes: Int,
    private val viewBuilder: (T) -> View
)

class MyPage : ViewPagerPage<MyPage>