Anchor Preparation Page

Feature Overview

The anchor preparation page is where the anchor previews the camera, adjusts beauty parameters, and sets camera flipping before starting the live broadcast. This document describes how to complete the access work for the anchor preparation page within 10 minutes.


Feature Integration

Note:
Note: Before completing the feature integration, you must first complete the integration steps in the overview.

Creating an Anchor Preparation Page View and Initializing

Swift
let coreView = LiveCoreView()

let anchorPrepareView = AnchorPrepareView(coreView: coreView)
anchorPrepareView.delegate = self

Load the Preparation Page to ViewController

Swift
public override func loadView() {
view = rootView
}

Listen to the Go Live Button Click Event

swift
extension YourAnchorPrepareViewController : AnchorPrepareViewDelegate {
public func onClickStartButton(state: PrepareState) {
}
public func onClickBackButton() {

}
}

Feature Customization

Hiding Operation Area View

swift
anchorPrepareView.disableFeatureMenu(true)

Hide Operation Area Beauty Effect Feature

swift
anchorPrepareView.disableMenuBeautyButton(true)

Hide Operation Area Sound Effect Feature

swift
anchorPrepareView.disableMenuAudioEffectButton(true)

Hide Operation Area Flip Feature

swift
anchorPrepareView.disableMenuSwitchButton(true)