Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

OnAdapterChangeListener

interface OnAdapterChangeListener
androidx.viewpager.widget.ViewPager.OnAdapterChangeListener

Callback interface for responding to adapter changes.

Summary

Public methods
abstract Unit
onAdapterChanged(@NonNull viewPager: ViewPager, @Nullable oldAdapter: PagerAdapter?, @Nullable newAdapter: PagerAdapter?)

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

Public methods

onAdapterChanged

abstract fun onAdapterChanged(
    @NonNull viewPager: ViewPager,
    @Nullable oldAdapter: PagerAdapter?,
    @Nullable newAdapter: PagerAdapter?
): Unit

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

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