GridViewPager.OnAdapterChangeListener

public static interface GridViewPager.OnAdapterChangeListener

android.support.wearable.view.GridViewPager.OnAdapterChangeListener


This interface is deprecated.
starting with Android Wear 2.0 we no longer encourage bi-directional spacial models for apps. If you are looking to implement vertical paging pattern, consider using the SnapHelper and a RecyclerView instead.

Callback interface for responding to a replaced or removed adapter.

Summary

Public methods

abstract void onAdapterChanged(GridPagerAdapter oldAdapter, GridPagerAdapter newAdapter)

Called when the adapter is changed with GridViewPager.setAdapter(GridPagerAdapter).

abstract void onDataSetChanged()

Called when a change is made to the content of the current adapter.

Public methods

onAdapterChanged

public abstract void onAdapterChanged (GridPagerAdapter oldAdapter, 
                GridPagerAdapter newAdapter)

Called when the adapter is changed with GridViewPager.setAdapter(GridPagerAdapter).

Parameters
oldAdapter GridPagerAdapter

newAdapter GridPagerAdapter

onDataSetChanged

public abstract void onDataSetChanged ()

Called when a change is made to the content of the current adapter.