package com.example.chemical.weidith

import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
import androidx.viewbinding.ViewBinding
import com.rc.core.ui.fragment.RcBaseFragment

class TabFragmentPagerAdapter (
    fragmentManager: FragmentManager,
    private val pageParamArray: MutableList<out RcBaseFragment<out ViewBinding>>
) : FragmentPagerAdapter(fragmentManager, BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT) {

    override fun getCount() = pageParamArray.size
    override fun getItem(position: Int) = pageParamArray[position]
}