RoomPage
class com.qlive.uikit.RoomPage
Index
字段
- showPKApplyComponent
- showLinkMicApplyComponent
- playerShowBeInvitedComponent
- anchorOfflineMonitorComponent
方法
字段
showPKApplyComponent
- public QLiveFunctionComponent showPKApplyComponent
-
主播收到pk邀请 展示弹窗 事件监听功能组件
showLinkMicApplyComponent
- public QLiveFunctionComponent showLinkMicApplyComponent
-
主播收到连麦申请 展示弹窗 事件监听功能组件
playerShowBeInvitedComponent
- public QLiveFunctionComponent playerShowBeInvitedComponent
-
用户收到主播连麦邀请 展示弹窗
anchorOfflineMonitorComponent
- public QLiveFunctionComponent anchorOfflineMonitorComponent
-
房主离线事件处理
方法
getAnchorCustomLayoutID
- public int getAnchorCustomLayoutID();
-
Returns int
setAnchorCustomLayoutID
- public void setAnchorCustomLayoutID(int anchorCustomLayoutID);
-
自定义布局 如果需要替换自定义布局 自定义主播端布局 如果需要替换自定义布局
Parameters-
anchorCustomLayoutID: int
自定义布局ID
Returns void -
getPlayerCustomLayoutID
- public int getPlayerCustomLayoutID();
-
Returns int
setPlayerCustomLayoutID
- public void setPlayerCustomLayoutID(int playerCustomLayoutID);
-
自定义布局 如果需要替换自定义布局 自定义主播端布局 如果需要替换自定义布局
Parameters-
playerCustomLayoutID: int
自定义布局ID
Returns void -
addFunctionComponent
- public final void addFunctionComponent(@NotNull() QLiveComponent component);
-
添加 功能组件 功能组件
Parameters-
component: QLiveComponent
功能组件
Returns void -
startRoomActivity
- public final void startRoomActivity(@NotNull() Context context, @NotNull() QLiveRoomInfo roomInfo, @Nullable() QLiveCallBack<QLiveRoomInfo> callBack);
-
根据房间信息自动跳转主播页直播间或观众直播间
Parameters-
context: Context
安卓上下文
-
roomInfo: QLiveRoomInfo
房间信息
-
callBack: QLiveCallBack
回调
Returns void -
startPlayerRoomActivity
- public final void startPlayerRoomActivity(@NotNull() Context context, @NotNull() String liveRoomId, @Nullable() QLiveCallBack<QLiveRoomInfo> callBack);
-
跳转观众直播间
Parameters-
context: Context
安卓上下文
-
liveRoomId: String
房间ID
-
callBack: QLiveCallBack
回调
Returns void -
startAnchorRoomActivity
- public final void startAnchorRoomActivity(@NotNull() Context context, @NotNull() String liveRoomId, @Nullable() QLiveCallBack<QLiveRoomInfo> callBack);
-
跳转已经存在的主播直播间
Parameters-
context: Context
安卓上下文
-
liveRoomId: String
直播间ID
-
callBack: QLiveCallBack
回调
Returns void -
startAnchorRoomWithPreview
- public final void startAnchorRoomWithPreview(@NotNull() Context context, @Nullable() QLiveCallBack<QLiveRoomInfo> callBack);
-
跳转到创建直播间开播页面
Parameters-
context: Context
安卓上下文
-
callBack: QLiveCallBack
回调
Returns void -
文档反馈
(如有产品使用问题,请 提交工单)