Package icyllis.modernui.widget

# Interface ViewPager.OnAdapterChangeListener

Enclosing class:
  `ViewPager`

public static interface ViewPager.OnAdapterChangeListener
Callback interface for responding to adapter changes.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onAdapterChanged(ViewPager viewPager, PagerAdapter oldAdapter, PagerAdapter newAdapter)`
  Called when the adapter for the given view pager has changed.

- ## Method Details

  - ### onAdapterChanged

    void onAdapterChanged(@NonNull ViewPager viewPager, @Nullable PagerAdapter oldAdapter, @Nullable 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