public class CMVideoPlayerAdapter extends androidx.fragment.app.FragmentPagerAdapter implements HomePageDataMgr.DataChanged
限定符和类型 | 字段和说明 |
---|---|
java.util.HashMap<java.lang.Integer,LiveVideoPlayerFragment> |
mFragmentMaps |
java.util.HashMap<java.lang.Integer,java.lang.Integer> |
mFragmentstateMaps
记录Fragment状态
null为没有执行
1为创建
2为注销
|
构造器和说明 |
---|
CMVideoPlayerAdapter(androidx.fragment.app.FragmentManager fm,
int enterIndex,
int mIndex,
java.lang.String videoDataType,
boolean isCanDisLike,
ChatFraSdk.ChatFraForYouCallback mForYouCallback) |
限定符和类型 | 方法和说明 |
---|---|
void |
changeVideoType(boolean isChange) |
void |
dataChanged() |
void |
destroyItem(android.view.ViewGroup container,
int position,
java.lang.Object object) |
LiveVideoPlayerFragment |
getCMVideoPlayerActivtyFirstEnter() |
LiveVideoPlayerFragment |
getCMVideoPlayerFragmentByPos(int pos) |
int |
getCount() |
androidx.fragment.app.Fragment |
getItem(int position) |
long |
getItemId(int position) |
int |
getItemPosition(java.lang.Object object) |
java.lang.Object |
instantiateItem(android.view.ViewGroup container,
int position) |
void |
notifyPostionChanged(java.util.ArrayList<DirectionalViewPager.ItemInfo> items) |
void |
reportFollowShow(com.app.dynamic.presenter.bo.UserBO userBO) |
finishUpdate, isViewFromObject, restoreState, saveState, setPrimaryItem, startUpdate
public java.util.HashMap<java.lang.Integer,LiveVideoPlayerFragment> mFragmentMaps
public java.util.HashMap<java.lang.Integer,java.lang.Integer> mFragmentstateMaps
public CMVideoPlayerAdapter(androidx.fragment.app.FragmentManager fm, int enterIndex, int mIndex, java.lang.String videoDataType, boolean isCanDisLike, ChatFraSdk.ChatFraForYouCallback mForYouCallback)
public LiveVideoPlayerFragment getCMVideoPlayerActivtyFirstEnter()
public LiveVideoPlayerFragment getCMVideoPlayerFragmentByPos(int pos)
public java.lang.Object instantiateItem(android.view.ViewGroup container, int position)
instantiateItem
在类中 androidx.fragment.app.FragmentPagerAdapter
public void destroyItem(android.view.ViewGroup container, int position, java.lang.Object object)
destroyItem
在类中 androidx.fragment.app.FragmentPagerAdapter
public androidx.fragment.app.Fragment getItem(int position)
getItem
在类中 androidx.fragment.app.FragmentPagerAdapter
public int getCount()
getCount
在类中 androidx.viewpager.widget.PagerAdapter
public void dataChanged()
dataChanged
在接口中 HomePageDataMgr.DataChanged
public void notifyPostionChanged(java.util.ArrayList<DirectionalViewPager.ItemInfo> items)
public int getItemPosition(java.lang.Object object)
getItemPosition
在类中 androidx.viewpager.widget.PagerAdapter
public long getItemId(int position)
getItemId
在类中 androidx.fragment.app.FragmentPagerAdapter
public void reportFollowShow(com.app.dynamic.presenter.bo.UserBO userBO)
public void changeVideoType(boolean isChange)