public interface

ViewPager.OnAdapterChangeListener

 androidx.viewpager.widget.ViewPager.OnAdapterChangeListener

Overview

Callback interface for responding to adapter changes.

Summary

Methods
public voidonAdapterChanged(ViewPager viewPager, PagerAdapter oldAdapter, PagerAdapter newAdapter)

Called when the adapter for the given view pager has changed.

Methods

public void onAdapterChanged(ViewPager viewPager, PagerAdapter oldAdapter, PagerAdapter newAdapter)

Called when the adapter for the given view pager has changed.

Parameters:

viewPager: ViewPager where the adapter change has happened
oldAdapter: the previously set adapter
newAdapter: the newly set adapter