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 viewDeclaration
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 thebanner
Declaration
Swift
public var bannerFrame: CGRect?
-
The
String
used to set the text value for the button that launches the ARBroadcasterDeclaration
Swift
public var broadcastBtnText: String
-
The
UIColor
used to set the text color for the button that launches the ARBroadcasterDeclaration
Swift
public var broadcastBtnColor: UIColor
-
The
String
used to set the text value for the button that launches the ARAudienceDeclaration
Swift
public var audienceBtnText: String
-
The
UIColor
used to set the text color for the button that launches the ARAudienceDeclaration
Swift
public var audienceBtnColor: UIColor
-
The
UITextField
used to set the set the Agora channel nameDeclaration
Swift
public var userInput: UITextField!
-
The
String
used to set the set the placeholder text value for theuserInput
text 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
createSession
method is called whenever the user taps the Broadcast button. Ovveride this method to implement a customARBroadcaster
.Declaration
Swift
@IBAction open func createSession()
-
The
joinSession
method 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