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
UIImageViewcontaining the banner image vsible within the Lobby viewDeclaration
Swift
public var banner: UIImageView? -
The
UIImagerepresenting the banner image vsible within the Lobby view.Declaration
Swift
public var bannerImage: UIImage? -
The
CGRectthat is used as the.framefor thebannerDeclaration
Swift
public var bannerFrame: CGRect? -
The
Stringused to set the text value for the button that launches the ARBroadcasterDeclaration
Swift
public var broadcastBtnText: String -
The
UIColorused to set the text color for the button that launches the ARBroadcasterDeclaration
Swift
public var broadcastBtnColor: UIColor -
The
Stringused to set the text value for the button that launches the ARAudienceDeclaration
Swift
public var audienceBtnText: String -
The
UIColorused to set the text color for the button that launches the ARAudienceDeclaration
Swift
public var audienceBtnColor: UIColor -
The
UITextFieldused to set the set the Agora channel nameDeclaration
Swift
public var userInput: UITextField! -
The
Stringused to set the set the placeholder text value for theuserInputtext fieldDeclaration
Swift
public var textFieldPlaceholder: String
-
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?)
-
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 channelDeclaration
Swift
open func createUI()
-
The
createSessionmethod is called whenever the user taps the Broadcast button. Ovveride this method to implement a customARBroadcaster.Declaration
Swift
@IBAction open func createSession() -
The
joinSessionmethod is called whenever the user taps the Audience buttonDeclaration
Swift
@IBAction open func joinSession()
-
Undocumented
Declaration
Swift
open func textFieldDidBeginEditing(_ textField: UITextField) -
Undocumented
Declaration
Swift
open func textFieldDidEndEditing(_ textField: UITextField) -
Undocumented
Declaration
Swift
open func textFieldShouldBeginEditing(_ textField: UITextField) -> Bool -
Undocumented
Declaration
Swift
open func textFieldShouldClear(_ textField: UITextField) -> Bool -
Undocumented
Declaration
Swift
open func textFieldShouldEndEditing(_ textField: UITextField) -> Bool -
Undocumented
Declaration
Swift
open func textField( _ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String ) -> Bool -
Undocumented
Declaration
Swift
open func textFieldShouldReturn(_ textField: UITextField) -> Bool
AgoraLobbyVC Class Reference