public class DanmakuManager
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
DanmakuManager.IDanmakuConfig |
static interface |
DanmakuManager.IDanmakuOnClickListener |
static interface |
DanmakuManager.IDanmakuPayCallback |
限定符和类型 | 字段和说明 |
---|---|
static int |
DANMAKU_FREE_STYLE_NONE |
static int |
DANMAKU_FREE_STYLE_NORMAL |
static int |
DANMAKU_FREE_STYLE_VALENTINE1 |
static int |
DANMAKU_FREE_STYLE_VALENTINE2 |
构造器和说明 |
---|
DanmakuManager(android.content.Context context,
android.view.ViewGroup containerView,
DanmakuManager.IDanmakuConfig config,
android.os.Handler mBHandler) |
DanmakuManager(android.content.Context context,
android.view.ViewGroup containerView,
android.os.Handler mBHandler) |
限定符和类型 | 方法和说明 |
---|---|
void |
add(com.kxsimon.video.chat.msgcontent.DanmakuMsgContent msg)
加入一条弹幕
|
void |
init()
初始化。
|
static int |
levelGetDanmakuType(java.lang.String levelRight) |
void |
payForDanmaku(java.lang.String text,
java.lang.String userId,
java.lang.String userNickname,
java.lang.String userLogoUrl,
java.lang.String sVideoId,
java.lang.String rid,
int isFree,
boolean isBadContent,
DanmakuManager.IDanmakuPayCallback callback) |
void |
release()
释放。
|
void |
setDanmakuOnClickListener(DanmakuManager.IDanmakuOnClickListener listener) |
public static final int DANMAKU_FREE_STYLE_NONE
public static final int DANMAKU_FREE_STYLE_NORMAL
public static final int DANMAKU_FREE_STYLE_VALENTINE1
public static final int DANMAKU_FREE_STYLE_VALENTINE2
public DanmakuManager(android.content.Context context, android.view.ViewGroup containerView, DanmakuManager.IDanmakuConfig config, android.os.Handler mBHandler)
public DanmakuManager(android.content.Context context, android.view.ViewGroup containerView, android.os.Handler mBHandler)
public void init()
public void release()
public void setDanmakuOnClickListener(DanmakuManager.IDanmakuOnClickListener listener)
public void add(com.kxsimon.video.chat.msgcontent.DanmakuMsgContent msg)
msg
- 弹幕消息public void payForDanmaku(java.lang.String text, java.lang.String userId, java.lang.String userNickname, java.lang.String userLogoUrl, java.lang.String sVideoId, java.lang.String rid, int isFree, boolean isBadContent, DanmakuManager.IDanmakuPayCallback callback)
public static int levelGetDanmakuType(java.lang.String levelRight)