public class ChatGiftFragmentV2 extends BaseFra implements GiftsListManagerV2.GiftsCommingInterface, android.view.View.OnClickListener
限定符和类型 | 类和说明 |
---|---|
static interface |
ChatGiftFragmentV2.BuyGoldInterface |
static interface |
ChatGiftFragmentV2.BuyVIPInterface |
static class |
ChatGiftFragmentV2.GiftClickBean |
static interface |
ChatGiftFragmentV2.GiftFraHideListener |
static interface |
ChatGiftFragmentV2.GuideGiftInterface
给ChatGiftFragment用的,每当礼物列表数据获取到时调用,触发送礼引导
|
static interface |
ChatGiftFragmentV2.OnBonusClickListener |
static interface |
ChatGiftFragmentV2.PlateOpenInterface |
static interface |
ChatGiftFragmentV2.SendFreeDanmakuInterface |
BaseFra.TopType
限定符和类型 | 字段和说明 |
---|---|
java.lang.String |
mIDScore
对应VideoDataInfo中的idscore字段,用来加在融云消息字段中
|
int |
mSource
注意这里正好和埋点kewl_70001的source相反
|
int |
mSource2
注意这里正好和埋点kewl_70001的source2相反
|
static short |
sensors_pay_source_default |
static short |
sensors_pay_source_from_live_gift_recharge |
static short |
sensors_pay_source_from_live_gift_send |
static java.lang.String |
TAG |
act, DEFAULT_TYPE_FROME, isShow, mBaseHandler, mInitPresenter, mIsCheez, mLastClickTsMs, mRootView, mStartupController, TYPE_FROME_COIN, TYPE_FROME_FANS, TYPE_FROME_STAR
构造器和说明 |
---|
ChatGiftFragmentV2() |
限定符和类型 | 方法和说明 |
---|---|
com.kxsimon.video.chat.gift_v2.bean.GiftV2 |
addGuideGift(java.util.List<GiftTabV2> giftTabV2List) |
static void |
checkRiskAndFailToast(java.lang.Object objParam) |
boolean |
consumeGiftBag(com.kxsimon.video.chat.gift_v2.bean.GiftBagV2 giftBag) |
void |
dismiss() |
void |
doSendAnim()
新用户,从消息流和升级弹窗进入礼物背包界面,展示动画
|
com.kxsimon.video.chat.gift_v2.bean.GiftBagV2 |
findBagGiftByGiftId(java.lang.String giftId) |
com.kxsimon.video.chat.gift_v2.bean.GiftV2 |
findGiftById(java.lang.String giftId)
根据指定礼物id查找礼物面板中的礼物
|
java.util.ArrayList<com.kxsimon.video.chat.gift_v2.bean.GiftV2> |
getDrawingGameGiftList() |
java.util.List<GiftTabV2> |
getGiftTabList() |
com.kxsimon.video.chat.gift_v2.bean.GiftV2 |
getGuideGift() |
java.lang.String |
getHostId() |
java.util.ArrayList<com.kxsimon.video.chat.gift_v2.bean.GiftV2> |
getPKRidiculeGiftList() |
android.view.View |
getRootView() |
void |
giftReport(int type,
int present_new_cartoon)
新手礼物上报使用
|
void |
giftReportNewGuide(int present_new_pop_up1)
新手送礼弹窗专用埋点
|
void |
hide(boolean hide,
GiftSelectedInfo selectedInfo,
GiftPanelSource source) |
void |
hideEatGameTab() |
protected boolean |
isCancelHttpMsgWhenPageDestroy() |
boolean |
isHide() |
boolean |
isUnitedLive() |
void |
notifyGiftPanelCallback(IGiftPanelCallback.Method method,
boolean isHide,
java.lang.Object data) |
void |
onActivityResult(int requestCode,
int resultCode,
android.content.Intent data) |
void |
onClick(android.view.View v) |
void |
onConfigurationChanged(android.content.res.Configuration newConfig) |
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
onDestroy() |
void |
onEventMainThread(com.live.immsgmodel.ExpUpdateMsgContent msg) |
void |
onEventMainThread(FirstRechargeResultEvent event) |
void |
onEventMainThread(com.app.letter.message.rong.MessageTools.ChatGiftMsg chatGiftMsg) |
void |
onEventMainThread(ReciveUnionGiftMsgEvent msg)
收到服务器下发的送礼消息后回调,处理魔力礼物进度条刷新逻辑
复用ReciveUnionGiftMsgEvent处理接收到礼物消息的逻辑
|
void |
onEventMainThread(RefreshGoldEvent event) |
void |
onEventMainThread(SubsBuyEvent event) |
void |
onGiftsCome(java.util.Map<java.lang.String,java.util.List<GiftTabV2>> map,
java.lang.String key,
int defaultTabId,
double star_to_exp,
GiftSelectedInfo selectedInfo,
GiftPanelSource source) |
void |
onMuteChange() |
void |
onPause() |
void |
onResume() |
void |
onVcallUserChange() |
void |
onViewCreated(android.view.View view,
android.os.Bundle savedInstanceState) |
void |
pkGameStartOrEnd(boolean isStart) |
void |
rechargeSuccess() |
void |
refreshAdapter()
升级后 需要刷新礼物
|
void |
refreshGiftList(boolean callbackOnNewDataOnly,
java.lang.String receiveUid,
GiftSelectedInfo selectedInfo,
GiftPanelSource source)
需要刷新礼物面板数据时,调用
|
void |
refreshGold() |
void |
registerGiftPanelCallback(java.lang.String key,
IGiftPanelCallback callback) |
void |
removeGiftPanelCallback(java.lang.String key) |
void |
reverseSelect()
反选礼物
|
void |
sendBagGiftById(java.lang.String giftId) |
boolean |
sendGift(com.kxsimon.video.chat.gift_v2.bean.GiftV2 gift1) |
void |
sendGiftReal(com.kxsimon.video.chat.gift_v2.bean.IGiftComBo giftComBo,
int srcType)
消费金币/星光/砖石
|
void |
setActivity(android.app.Activity act) |
void |
setArea(java.lang.String area) |
void |
setBuyGoldInterface(ChatGiftFragmentV2.BuyGoldInterface buyGoldInterface) |
void |
setbuyVIPCallback(ChatGiftFragmentV2.BuyVIPInterface vipInterface) |
void |
setCountryCode(java.lang.String countryCode) |
void |
setDialogLock(ExclusiveDialogBaseManager.ExclusiveDialogLock dialogLockTwo) |
void |
setFreeDanmakuInterface(ChatGiftFragmentV2.SendFreeDanmakuInterface sendFreeDanmakuInterface) |
void |
setFrom(int from) |
void |
setGiftActivityInfo(int activityType,
java.lang.String actId) |
void |
setGiftFraHideListener(ChatGiftFragmentV2.GiftFraHideListener giftFraHideListener) |
void |
setGiftReciver(SendGiftTargetInfo giftReciver) |
void |
setGuideGiftCallback(ChatGiftFragmentV2.GuideGiftInterface guideGiftInterface) |
void |
setGuideManager(NewUserSendGiftGuideManager manager) |
void |
setHostTarget(SendGiftTargetInfo hostTarget) |
void |
setIDScore(java.lang.String idScore) |
void |
setIsHost(boolean isHost) |
void |
setLiveType(int type) |
void |
setMatchmaker(boolean matchmaker) |
void |
setNineBeamCallback(BaseVcallControl.GiftVcallHostCallback callback) |
void |
setOnBonusClickListener(ChatGiftFragmentV2.OnBonusClickListener onBonusClickListener) |
void |
setOnGiftComeListener(IGiftFragmentOperation mIGiftFragmentOperation) |
void |
setPkSupportInterface(PkSupportInterface pkSupportInterface) |
void |
setPlateGiftShow(boolean isPlateShow) |
void |
setPlateOpenCallback(ChatGiftFragmentV2.PlateOpenInterface plateOpenInterface) |
void |
setRewardGiftTip(boolean showTip) |
void |
setSource(int source)
此处的source对应的埋点kewl_70001的source2,注意不是source,为了保证原有逻辑不受影响,保持相反的赋值不变
|
void |
setSource2(int source2)
此处的source对应的埋点kewl_70001的source,注意不是source2,为了保证原有逻辑不受影响,保持相反的赋值不变
|
void |
setTopFansTvContent(boolean isHasGame,
java.lang.String topActivityString) |
void |
setVideoC(java.lang.String c) |
void |
setVideoId(java.lang.String sId) |
void |
setVtype(int vtype) |
void |
showEatGameTab() |
void |
showFragmentByTabType(int tabType) |
static java.lang.String |
SYSTEM_ICON() |
void |
vibrate() |
finish, generateNetworkLiveData, getDescription, getHttpMsgTag, getInitOnceLoginOrNotRunnable, getInitOnceMustLoginRunnable, getInitRepeatLoginOrNotRunnable, getInitRepeatMustLoginRunnable, getThreadInfo, hasNetRequest, hideLoading, initPresenter, isAccountLogin, isActivityAlive, isFinish2, isShow, isShowVipBanner, isTwooProduct, isViewTokenValid, isVisitorMode, onAttach, onCreate, onInitNotImportantCode, onNetRequestEnd, onNetRequestStart, onShareClickForMatch, onStartupCompleted, runOnUiThread, runOnUiThreadDelay, setUserVisibleHint, showLoading, showLoading, showLoading
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getDefaultViewModelProviderFactory, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getParentFragmentManager, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSavedStateRegistry, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onAttach, onAttachFragment, onContextItemSelected, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onDestroyView, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onSaveInstanceState, onStart, onStop, onViewStateRestored, postponeEnterTransition, postponeEnterTransition, registerForContextMenu, requestPermissions, requireActivity, requireArguments, requireContext, requireFragmentManager, requireHost, requireParentFragment, requireView, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
public static final java.lang.String TAG
public int mSource
public int mSource2
public java.lang.String mIDScore
public static final short sensors_pay_source_default
public static final short sensors_pay_source_from_live_gift_recharge
public static final short sensors_pay_source_from_live_gift_send
public java.util.List<GiftTabV2> getGiftTabList()
public void setGiftFraHideListener(ChatGiftFragmentV2.GiftFraHideListener giftFraHideListener)
public void setPlateOpenCallback(ChatGiftFragmentV2.PlateOpenInterface plateOpenInterface)
public void setPkSupportInterface(PkSupportInterface pkSupportInterface)
public void setMatchmaker(boolean matchmaker)
public void pkGameStartOrEnd(boolean isStart)
public void setDialogLock(ExclusiveDialogBaseManager.ExclusiveDialogLock dialogLockTwo)
public void setGiftReciver(SendGiftTargetInfo giftReciver)
public boolean isUnitedLive()
public void setRewardGiftTip(boolean showTip)
public void onClick(android.view.View v)
onClick
在接口中 android.view.View.OnClickListener
public void vibrate()
public boolean sendGift(com.kxsimon.video.chat.gift_v2.bean.GiftV2 gift1)
public void setbuyVIPCallback(ChatGiftFragmentV2.BuyVIPInterface vipInterface)
public void setBuyGoldInterface(ChatGiftFragmentV2.BuyGoldInterface buyGoldInterface)
public void setOnBonusClickListener(ChatGiftFragmentV2.OnBonusClickListener onBonusClickListener)
public void setFreeDanmakuInterface(ChatGiftFragmentV2.SendFreeDanmakuInterface sendFreeDanmakuInterface)
public void onEventMainThread(SubsBuyEvent event)
public void setOnGiftComeListener(IGiftFragmentOperation mIGiftFragmentOperation)
public void setNineBeamCallback(BaseVcallControl.GiftVcallHostCallback callback)
public void setIsHost(boolean isHost)
public void onVcallUserChange()
public void onMuteChange()
public void setVideoId(java.lang.String sId)
public void setVideoC(java.lang.String c)
public void setLiveType(int type)
public java.lang.String getHostId()
public void setHostTarget(SendGiftTargetInfo hostTarget)
public void setCountryCode(java.lang.String countryCode)
public void setArea(java.lang.String area)
public void setActivity(android.app.Activity act)
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
onCreateView
在类中 androidx.fragment.app.Fragment
public android.view.View getRootView()
public void setVtype(int vtype)
public void onViewCreated(android.view.View view, android.os.Bundle savedInstanceState)
onViewCreated
在类中 BaseFra
public void doSendAnim()
public void refreshAdapter()
public void refreshGiftList(boolean callbackOnNewDataOnly, java.lang.String receiveUid, GiftSelectedInfo selectedInfo, GiftPanelSource source)
callbackOnNewDataOnly
- 有该直播间的礼物列表的缓存时,是否刷新数据。false表示刷新selectedInfo
- source
- public void setGuideManager(NewUserSendGiftGuideManager manager)
public void setPlateGiftShow(boolean isPlateShow)
public void reverseSelect()
public void setTopFansTvContent(boolean isHasGame, java.lang.String topActivityString)
public void onConfigurationChanged(android.content.res.Configuration newConfig)
onConfigurationChanged
在接口中 android.content.ComponentCallbacks
onConfigurationChanged
在类中 androidx.fragment.app.Fragment
public boolean isHide()
public void rechargeSuccess()
public void setGiftActivityInfo(int activityType, java.lang.String actId)
public void showFragmentByTabType(int tabType)
public void hide(boolean hide, GiftSelectedInfo selectedInfo, GiftPanelSource source)
public void hideEatGameTab()
public void showEatGameTab()
public void sendGiftReal(com.kxsimon.video.chat.gift_v2.bean.IGiftComBo giftComBo, int srcType)
giftComBo
- public static void checkRiskAndFailToast(java.lang.Object objParam)
public boolean consumeGiftBag(com.kxsimon.video.chat.gift_v2.bean.GiftBagV2 giftBag)
public static java.lang.String SYSTEM_ICON()
public void onPause()
onPause
在类中 androidx.fragment.app.Fragment
public void onResume()
onResume
在类中 androidx.fragment.app.Fragment
public void onGiftsCome(java.util.Map<java.lang.String,java.util.List<GiftTabV2>> map, java.lang.String key, int defaultTabId, double star_to_exp, GiftSelectedInfo selectedInfo, GiftPanelSource source)
public java.util.ArrayList<com.kxsimon.video.chat.gift_v2.bean.GiftV2> getDrawingGameGiftList()
public java.util.ArrayList<com.kxsimon.video.chat.gift_v2.bean.GiftV2> getPKRidiculeGiftList()
public void dismiss()
public void setGuideGiftCallback(ChatGiftFragmentV2.GuideGiftInterface guideGiftInterface)
public void refreshGold()
public void onEventMainThread(com.app.letter.message.rong.MessageTools.ChatGiftMsg chatGiftMsg)
public com.kxsimon.video.chat.gift_v2.bean.GiftV2 addGuideGift(java.util.List<GiftTabV2> giftTabV2List)
public com.kxsimon.video.chat.gift_v2.bean.GiftV2 getGuideGift()
public void setSource(int source)
source
- public void setSource2(int source2)
source2
- public void setIDScore(java.lang.String idScore)
public void onEventMainThread(com.live.immsgmodel.ExpUpdateMsgContent msg)
public void onEventMainThread(ReciveUnionGiftMsgEvent msg)
public void sendBagGiftById(java.lang.String giftId)
protected boolean isCancelHttpMsgWhenPageDestroy()
public void setFrom(int from)
public void onActivityResult(int requestCode, int resultCode, android.content.Intent data)
onActivityResult
在类中 androidx.fragment.app.Fragment
public void onEventMainThread(FirstRechargeResultEvent event)
public void onEventMainThread(RefreshGoldEvent event)
public void registerGiftPanelCallback(java.lang.String key, IGiftPanelCallback callback)
public void removeGiftPanelCallback(java.lang.String key)
public void notifyGiftPanelCallback(IGiftPanelCallback.Method method, boolean isHide, java.lang.Object data)
public void giftReport(int type, int present_new_cartoon)
type
- 类型public void giftReportNewGuide(int present_new_pop_up1)
present_new_pop_up1
- 类型public com.kxsimon.video.chat.gift_v2.bean.GiftBagV2 findBagGiftByGiftId(java.lang.String giftId)
public com.kxsimon.video.chat.gift_v2.bean.GiftV2 findGiftById(java.lang.String giftId)