public class CheezSurpriseManager
extends java.lang.Object
构造器和说明 |
---|
CheezSurpriseManager() |
限定符和类型 | 方法和说明 |
---|---|
static CheezSurpriseManager |
getInstance() |
int |
getWatchLiveTime() |
void |
setWatchLiveTime(int duration) |
void |
show(android.content.Context context,
int type,
int duration) |
void |
show(android.content.Context context,
int type,
int duration,
CheezSurpriseListener listener) |
public static CheezSurpriseManager getInstance()
public void show(android.content.Context context, int type, int duration)
public void show(android.content.Context context, int type, int duration, CheezSurpriseListener listener)
context
- type
- 取值参考CheezSurpriseItem
duration
- 开播或者看播的时长,有的场景可以传0, 单位为秒public void setWatchLiveTime(int duration)
public int getWatchLiveTime()