public class HandGiftBusiness extends java.lang.Object implements androidx.lifecycle.LifecycleObserver, com.kxsimon.video.chat.hand.LMHandGiftEditor.LMHandGiftEditorListener, IGiftPanelCallback
IGiftPanelCallback.Method
限定符和类型 | 字段和说明 |
---|---|
static boolean |
isNeedUpdateResource
是否需要更新下载好的资源,每次进程重新启动,都需要更新
|
构造器和说明 |
---|
HandGiftBusiness(android.view.View rootView) |
限定符和类型 | 方法和说明 |
---|---|
void |
clearHandGift() |
void |
destroy() |
void |
downloadTemplate(java.lang.String url) |
int |
getCurrGiftNodeNum() |
com.kxsimon.video.chat.hand.LMHandGiftData |
getHandGiftData() |
org.json.JSONObject |
getHandGiftDataForJSON() |
int |
getHandGiftGold(com.kxsimon.video.chat.gift_v2.bean.GiftV2 gift) |
int |
getMinNum() |
java.lang.String |
getTemplateName() |
void |
giftPanelHide(boolean isHide) |
static java.util.List<HandGiftTemplateData> |
handleTemplateZip(java.lang.String zipUrl)
解析本地下载好的模板资源,其中json文件包含多个手绘礼物模板动画
|
boolean |
isPlaying() |
void |
onLeaveHandGiftTab() |
void |
onLMHandGiftEditorBitmapNotExist()
bitmap不存在
|
void |
onLMHandGiftEditorDataChanged(int nodeCount,
int macCount) |
void |
onLMHandGiftEditorDataSizeLimited(int maxCount) |
void |
onSwitchToHandGiftTab(GiftTabV2 giftTabV2) |
static java.util.List<com.kxsimon.video.chat.hand.LMHandGiftData> |
parseSingleTemplate(java.io.File file) |
void |
selectHandGift(com.kxsimon.video.chat.gift_v2.bean.GiftV2 giftV2) |
void |
setGiftPanelInteraction(IHandGiftGiftPanelInteraction interaction) |
boolean |
showMinCountTip() |
public boolean showMinCountTip()
public void downloadTemplate(java.lang.String url)
public void onSwitchToHandGiftTab(GiftTabV2 giftTabV2)
public void selectHandGift(com.kxsimon.video.chat.gift_v2.bean.GiftV2 giftV2)
public void onLeaveHandGiftTab()
public void onLMHandGiftEditorDataChanged(int nodeCount, int macCount)
onLMHandGiftEditorDataChanged
在接口中 com.kxsimon.video.chat.hand.LMHandGiftEditor.LMHandGiftEditorListener
nodeCount
- 节点数量macCount
- 最大节点数量public void onLMHandGiftEditorDataSizeLimited(int maxCount)
onLMHandGiftEditorDataSizeLimited
在接口中 com.kxsimon.video.chat.hand.LMHandGiftEditor.LMHandGiftEditorListener
maxCount
- 上限值public void onLMHandGiftEditorBitmapNotExist()
com.kxsimon.video.chat.hand.LMHandGiftEditor.LMHandGiftEditorListener
onLMHandGiftEditorBitmapNotExist
在接口中 com.kxsimon.video.chat.hand.LMHandGiftEditor.LMHandGiftEditorListener
public void setGiftPanelInteraction(IHandGiftGiftPanelInteraction interaction)
public void destroy()
public static java.util.List<HandGiftTemplateData> handleTemplateZip(java.lang.String zipUrl)
public static java.util.List<com.kxsimon.video.chat.hand.LMHandGiftData> parseSingleTemplate(java.io.File file)
public com.kxsimon.video.chat.hand.LMHandGiftData getHandGiftData()
public int getHandGiftGold(@NonNull com.kxsimon.video.chat.gift_v2.bean.GiftV2 gift)
public org.json.JSONObject getHandGiftDataForJSON()
public int getCurrGiftNodeNum()
public boolean isPlaying()
public void giftPanelHide(boolean isHide)
giftPanelHide
在接口中 IGiftPanelCallback
public void clearHandGift()
public java.lang.String getTemplateName()
public int getMinNum()