public class TaskBonusManager
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
TaskBonusManager.ChestItemBean |
static interface |
TaskBonusManager.OnTaskBonusResultListener |
static interface |
TaskBonusManager.TaskBonusInterface |
限定符和类型 | 字段和说明 |
---|---|
static int |
CHEST_STATE_EMPTY |
static int |
CHEST_STATE_GAINING |
static int |
CHEST_STATE_RESULTSHOW |
static int |
CHEST_STATE_SHOWING |
static int |
CHEST_STATE_SLIDIN |
TaskBonusManager.OnTaskBonusResultListener |
mChestResultListener |
TaskBonusManager.TaskBonusInterface |
mTaskBonusListener |
构造器和说明 |
---|
TaskBonusManager(android.app.Activity context,
ExclusiveDialogBaseManager.ExclusiveDialogLock dialogLock,
android.os.Handler mHandler,
boolean isHost,
com.app.live.activity.VideoDataInfo videoDataInfo,
com.kxsimon.video.chat.giftanim.GiftAnimatorHelper giftAnimator) |
限定符和类型 | 方法和说明 |
---|---|
void |
add(TaskBonusMessages.TaskBonusBean bonus)
加入一个红包
|
void |
clearChest()
直播结束时,先清空红包,防止红包突然出现
|
void |
distributeMsg(TaskBonusMessages bonusMessages)
分发消息
|
java.util.List<android.app.Dialog> |
getChestDialogs() |
void |
init() |
void |
liveEndDismiss()
只可以在视频结束跳入结果页时使用
|
void |
release()
释放。
|
void |
setGameEnabled(boolean gameEnabled) |
void |
setLiveState(boolean b) |
void |
setmTaskBonusListener(TaskBonusManager.TaskBonusInterface mTaskBonusListener) |
void |
setSwitch(boolean isSwitch) |
void |
setVideoDataInfo(com.app.live.activity.VideoDataInfo videoDataInfo) |
public static final int CHEST_STATE_EMPTY
public static final int CHEST_STATE_SLIDIN
public static final int CHEST_STATE_SHOWING
public static final int CHEST_STATE_GAINING
public static final int CHEST_STATE_RESULTSHOW
public TaskBonusManager.OnTaskBonusResultListener mChestResultListener
public TaskBonusManager.TaskBonusInterface mTaskBonusListener
public TaskBonusManager(android.app.Activity context, ExclusiveDialogBaseManager.ExclusiveDialogLock dialogLock, android.os.Handler mHandler, boolean isHost, com.app.live.activity.VideoDataInfo videoDataInfo, com.kxsimon.video.chat.giftanim.GiftAnimatorHelper giftAnimator)
public void init()
public void setVideoDataInfo(com.app.live.activity.VideoDataInfo videoDataInfo)
public void setLiveState(boolean b)
public void distributeMsg(TaskBonusMessages bonusMessages)
bonusMessages
- public void setSwitch(boolean isSwitch)
public void add(TaskBonusMessages.TaskBonusBean bonus)
bonus
- 红包消息public void liveEndDismiss()
public void release()
public void setmTaskBonusListener(TaskBonusManager.TaskBonusInterface mTaskBonusListener)
public void clearChest()
public java.util.List<android.app.Dialog> getChestDialogs()
public void setGameEnabled(boolean gameEnabled)