SWNetworkViewController
class SWNetworkViewController : SWBaseViewController
Undocumented
-
Undocumented
Declaration
Swift
@IBOutlet weak var tableView: UITableView!
-
Undocumented
Declaration
Swift
@IBOutlet weak var titleLabel: UILabel!
-
Undocumented
Declaration
Swift
@IBOutlet weak var inviteThroughSocialNetworkViewHeightConstraints: NSLayoutConstraint!
-
Undocumented
Declaration
Swift
var networkType: NetworkType
-
Undocumented
Declaration
Swift
var phoneContacts: [CNContact]
-
Undocumented
Declaration
Swift
var registeredUsers: [SWUser]
-
Undocumented
Declaration
Swift
var section: [String]
-
Undocumented
Declaration
Swift
var loggedInUser: SWUser!
-
Undocumented
Declaration
Swift
override func viewDidLoad()
-
Undocumented
Declaration
Swift
override func viewDidAppear(_ animated: Bool)
-
Undocumented
Declaration
Swift
@IBAction func backBtnClick(_ sender: UIBarButtonItem)
-
Undocumented
Declaration
Swift
override func viewWillAppear(_ animated: Bool)
-
Undocumented
Declaration
Swift
override func viewWillDisappear(_ animated: Bool)
-
based on the network type its decided whether to load which contacts in list
Declaration
Swift
func loadContacts()
-
fetch all the registered users on the server and refresh the userlist
Declaration
Swift
func getRegisteredUsersCombined()
-
fetch all the registered swoo members from the server and refresh the userlist
Declaration
Swift
func getRegisteredMemberUsers()
-
fetch all the registered swoo members from the server and refresh the userlist
Declaration
Swift
func getRegisteredBroadcasterUsers()
-
Undocumented
Declaration
Swift
static func getAllPhoneContacts(successHandler:@escaping ([CNContact]) -> Void, errorHandler: @escaping (Error) -> Void)
-
Undocumented
Declaration
Swift
static func uploadContactsToServer(contacts: [CNContact], successHandler:@escaping (SWUserList?) -> Void)
-
uploads the mobile contacts to the server and update the local phone contacts with users not present on SWOO server for invite purpose also if the purpose is to check the contact permissiona and upload the contacts to the server then the deicision is taken by upload contact block which contacts are to be loaded
Declaration
Swift
func uploadContactsToServerAndDisplayInviteOnlyContact()
-
removes the contacts which are registered already on SWOO
Declaration
Swift
func removeContactsWhichIsAlreadyRegestered(userList: SWUserList?)
Parameters
userList
server response of registered users
-
Undocumented
Declaration
Swift
@IBAction func inviteButtonTapped(_ sender: UIButton)
-
Undocumented
Declaration
Swift
func getSharingText() -> String
-
Undocumented
Declaration
Swift
@IBAction func shareButtonTapped(_ sender: UIButton)
-
Undocumented
Declaration
Swift
@IBAction func shareWithFacebook(_ sender: Any)
-
Undocumented
Declaration
Swift
@IBAction func shareWithTwitter(_ sender: Any)
-
Undocumented
Declaration
Swift
@IBAction func shareWithWhatsApp(_ sender: Any)
-
Undocumented
Declaration
Swift
@IBAction func profileActionButton(_ sender: UIButton)
-
Undocumented
Declaration
Swift
func followUser(user: SWUser)
-
Undocumented
Declaration
Swift
func unFollowUser(user: SWUser)
-
Undocumented
Declaration
Swift
func updateScreenName()
-
Undocumented
Declaration
Swift
func addCloseButtonIfNeeded()
-
Undocumented
Declaration
Swift
@objc func closePresentedViewController()
-
Undocumented
Declaration
Swift
func numberOfSections(in tableView: UITableView) -> Int
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
-
Undocumented
Declaration
Swift
func sectionIndexTitles(for tableView: UITableView) -> [String]?
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, sectionForSectionIndexTitle title: String, at index: Int) -> Int
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)