public class ChestManager
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
ChestManager.ChestItemBean |
static interface |
ChestManager.OnChestResultListener |
static interface |
ChestManager.OnMoreActionListener |
static class |
ChestManager.SnatchResult |
限定符和类型 | 字段和说明 |
---|---|
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 |
构造器和说明 |
---|
ChestManager(android.content.Context context,
ExclusiveDialogBaseManager.ExclusiveDialogLock dialogLock,
android.os.Handler mHandler,
java.lang.String vid,
boolean isHost) |
限定符和类型 | 方法和说明 |
---|---|
void |
add(BonusMsgContent bonus)
加入一个红包
|
void |
addChestResultListener(ChestManager.OnChestResultListener listener) |
void |
addMoreActionListener(ChestManager.OnMoreActionListener listener) |
void |
clearChest()
直播结束时,先清空红包,防止红包突然出现
|
java.util.List<android.app.Dialog> |
getChestDialogs() |
void |
init()
外部创建对象时手动调用的初始化。
|
void |
liveEndDismiss()
只可以在视频结束跳入结果页时使用
|
void |
release()
释放。
|
void |
setGameEnabled(boolean gameEnabled) |
void |
setLiveState(boolean b) |
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 ChestManager(android.content.Context context, ExclusiveDialogBaseManager.ExclusiveDialogLock dialogLock, android.os.Handler mHandler, java.lang.String vid, boolean isHost)
public void clearChest()
public void setGameEnabled(boolean gameEnabled)
public void init()
public void setLiveState(boolean b)
public void release()
public void add(BonusMsgContent bonus)
bonus
- 红包消息public void addMoreActionListener(ChestManager.OnMoreActionListener listener)
public void addChestResultListener(ChestManager.OnChestResultListener listener)
public void liveEndDismiss()
public java.util.List<android.app.Dialog> getChestDialogs()