Code example for FragmentStatePagerAdapter

Methods: destroyItem

    public void destroyItem(ViewGroup container, int position, Object object) {
       super.destroyItem(container, position, object);
    public boolean pendingErrorAt(int position) {
        return mDownloadErrors.contains(Integer.valueOf(position));
    /* -* 
     * Called when a change in the shown pages is going to start being made. 
     * @param   container   The containing View which is displaying this adapter's page views. 
     *- / 
    public void startUpdate(ViewGroup container) {