AgoraLobbyVC

open class AgoraLobbyVC : UIViewController
extension AgoraLobbyVC: UITextFieldDelegate

The AgoraLobbyVC is a UIViewController that provides a manged UIView that gives the user the ability to enter a channel name and choose their role as either a Broadcaster or Audience. Based on their selection an ARBroadcaster or ARAudience ViewController is presented.

Note

All class methods can be extended or overwritten.
  • Undocumented

    Declaration

    Swift

    public var debug: Bool
  • The UIImageView containing the banner image vsible within the Lobby view

    Declaration

    Swift

    public var banner: UIImageView?
  • The UIImage representing the banner image vsible within the Lobby view.

    Declaration

    Swift

    public var bannerImage: UIImage?
  • The CGRect that is used as the .frame for the banner

    Declaration

    Swift

    public var bannerFrame: CGRect?
  • The String used to set the text value for the button that launches the ARBroadcaster

    Declaration

    Swift

    public var broadcastBtnText: String
  • The UIColor used to set the text color for the button that launches the ARBroadcaster

    Declaration

    Swift

    public var broadcastBtnColor: UIColor
  • The String used to set the text value for the button that launches the ARAudience

    Declaration

    Swift

    public var audienceBtnText: String
  • The UIColor used to set the text color for the button that launches the ARAudience

    Declaration

    Swift

    public var audienceBtnColor: UIColor
  • The UITextField used to set the set the Agora channel name

    Declaration

    Swift

    public var userInput: UITextField!
  • The String used to set the set the placeholder text value for the userInput text field

    Declaration

    Swift

    public var textFieldPlaceholder: String

VC Events

  • Undocumented

    Declaration

    Swift

    override open func loadView()
  • Undocumented

    Declaration

    Swift

    override open func viewDidLoad()
  • Undocumented

    Declaration

    Swift

    override open func viewWillAppear(_ animated: Bool)
  • Undocumented

    Declaration

    Swift

    override open func viewDidAppear(_ animated: Bool)
  • Undocumented

    Declaration

    Swift

    override open func viewWillDisappear(_ animated: Bool)
  • Undocumented

    Declaration

    Swift

    override open func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?)

Create UI

  • The createUI() method is used to generate the managed UI for the “Lbby”, a view where hte user has the ability to enter a channel name and choose their role within the channel

    Declaration

    Swift

    open func createUI()

Button Actions

  • The createSession method is called whenever the user taps the Broadcast button. Ovveride this method to implement a custom ARBroadcaster.

    Declaration

    Swift

    @IBAction
    open func createSession()
  • The joinSession method is called whenever the user taps the Audience button

    Declaration

    Swift

    @IBAction
    open func joinSession()

Textfield Delegates