public class PKNonScreenManager
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
PKNonScreenManager.PkNonSrceenListener |
构造器和说明 |
---|
PKNonScreenManager(android.view.ViewGroup mParentView,
android.content.Context mContext,
boolean mIsHost,
java.lang.String hostid,
android.view.ViewGroup mRootView)
初始化manager
|
限定符和类型 | 方法和说明 |
---|---|
void |
addPkAnimatorView() |
void |
destroy(int time) |
PKGameUserData |
getNonScreenOtherData() |
java.lang.String |
getNoScreenPkId() |
boolean |
isGameEnding() |
boolean |
isGamePlaying() |
boolean |
isReceiveEndMsg(boolean isNoScreenPkSurrender) |
void |
onReceiveEndMsg(PkGameResultBean PkGameResultBean) |
void |
onReceiveUpdateMsg(PKNonscreenRefreshMsgContent msgContent) |
void |
setPkNonScreenListener(PKNonScreenManager.PkNonSrceenListener listener) |
boolean |
startNonScreenPKGame(java.util.List<PKGameUserData> pkGameUserDataList,
PKGameInfoData pkGameInfoData,
OnNoScreenPkClickCallBack mOnNoScreenPkClickCallBack)
已经开始pk,先展示动画,动画结束后,再展示view
|
void |
startNoScreenPKFinding(long time,
boolean isNormal) |
void |
stopNonscreenPKGame() |
void |
stopNoScreenPKFinding()
pk匹配失败或超时,只处理卡片
|
void |
stopPKCountDownTimer() |
public PKNonScreenManager(android.view.ViewGroup mParentView, android.content.Context mContext, boolean mIsHost, java.lang.String hostid, android.view.ViewGroup mRootView)
mParentView
- 父viewmContext
- 上下文mIsHost
- 是否主播public void startNoScreenPKFinding(long time, boolean isNormal)
time
- 开始寻找等待时间public void stopNoScreenPKFinding()
public void onReceiveEndMsg(PkGameResultBean PkGameResultBean)
public boolean startNonScreenPKGame(java.util.List<PKGameUserData> pkGameUserDataList, PKGameInfoData pkGameInfoData, OnNoScreenPkClickCallBack mOnNoScreenPkClickCallBack)
public void destroy(int time)
public void setPkNonScreenListener(PKNonScreenManager.PkNonSrceenListener listener)
public void onReceiveUpdateMsg(PKNonscreenRefreshMsgContent msgContent)
public boolean isGamePlaying()
public boolean isGameEnding()
public boolean isReceiveEndMsg(boolean isNoScreenPkSurrender)
public void stopNonscreenPKGame()
public void stopPKCountDownTimer()
public void addPkAnimatorView()
public java.lang.String getNoScreenPkId()
public PKGameUserData getNonScreenOtherData()