is there a class that both IntArray abd StringArray heritate from i have a function that will need as argument all sort of Arrays to use it in a fragmentadapter
class MyPagerAdapter(val fragmentManager: FragmentManager,val collection:Array):FragmentStatePagerAdapter(fragmentManager){
override fun getCount(): Int {
Log.i("viewpager","count"+fragmentManager.fragments.size.toString())
return collection.size
}
}
is it possible ? or would i use another way ?