What is TabLayoutMediator?
com.google.android.material.tabs.TabLayoutMediator. A mediator to link a TabLayout with a ViewPager2. The mediator will synchronize the ViewPager2's position with the selected tab when a tab is selected, and the TabLayout's scroll position when the user drags the ViewPager2.