human: 如何处理七牛云的低代码RoomPage

gpt: [低代码](https://developer.qiniu.com/lowcode) > API 文档 >
[互动直播](https://developer.qiniu.com/lowcode/api/12007/qlive-api) > [android
API文档](https://developer.qiniu.com/lowcode/api/12032/the-android-api-
documentation) > RoomPage

#  RoomPage

最近更新时间: 2022-07-11 14:47:22

class com.qlive.uikit.RoomPage

Index

字段

  * showPKApplyComponent
  * showLinkMicApplyComponent
  * playerShowBeInvitedComponent
  * anchorOfflineMonitorComponent

方法

  * getAnchorCustomLayoutID
  * setAnchorCustomLayoutID
  * getPlayerCustomLayoutID
  * setPlayerCustomLayoutID
  * addFunctionComponent
  * startRoomActivity
  * startPlayerRoomActivity
  * startAnchorRoomActivity
  * startAnchorRoomWithPreview

字段

showPKApplyComponent

  * public [QLiveFunctionComponent](https://developer.qiniu.com/lowcode/api/12107/QLiveFunctionComponent) showPKApplyComponent
  * 主播收到pk邀请 展示弹窗 事件监听功能组件

showLinkMicApplyComponent

  * public [QLiveFunctionComponent](https://developer.qiniu.com/lowcode/api/12107/QLiveFunctionComponent) showLinkMicApplyComponent
  * 主播收到连麦申请 展示弹窗 事件监听功能组件

playerShowBeInvitedComponent

  * public [QLiveFunctionComponent](https://developer.qiniu.com/lowcode/api/12107/QLiveFunctionComponent) playerShowBeInvitedComponent
  * 用户收到主播连麦邀请 展示弹窗

anchorOfflineMonitorComponent

  * public [QLiveFunctionComponent](https://developer.qiniu.com/lowcode/api/12107/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](https://developer.qiniu.com/lowcode/api/12108/QLiveComponent)

功能组件

Returns void

startRoomActivity

  * public final void startRoomActivity(@NotNull() Context context, @NotNull() QLiveRoomInfo roomInfo, @Nullable() QLiveCallBack<QLiveRoomInfo> callBack);
  * 根据房间信息自动跳转主播页直播间或观众直播间

Parameters

    * context: Context 

安卓上下文

    * roomInfo: [QLiveRoomInfo](https://developer.qiniu.com/lowcode/api/12061/QLiveRoomInfo)

房间信息

    * callBack: [QLiveCallBack](https://developer.qiniu.com/lowcode/api/12052/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](https://developer.qiniu.com/lowcode/api/12052/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](https://developer.qiniu.com/lowcode/api/12052/QLiveCallBack)

回调

Returns void

startAnchorRoomWithPreview

  * public final void startAnchorRoomWithPreview(@NotNull() Context context, @Nullable() QLiveCallBack<QLiveRoomInfo> callBack);
  * 跳转到创建直播间开播页面

Parameters

    * context: Context 

安卓上下文

    * callBack: [QLiveCallBack](https://developer.qiniu.com/lowcode/api/12052/QLiveCallBack)

回调

Returns void

以上内容是否对您有帮助？