SWProfileViewController

class SWProfileViewController : SWBaseViewController, UIImagePickerControllerDelegate, RSKImageCropViewControllerDelegate, UINavigationControllerDelegate, UIGestureRecognizerDelegate, UITableViewDataSource, UITableViewDelegate

Undocumented

  • Undocumented

    Declaration

    Swift

    @IBOutlet
    weak var profileOptionsButton: UIBarButtonItem!
  • Reference to associated user to show his profile.

    Declaration

    Swift

    var user: SWUser!
  • Undocumented

    Declaration

    Swift

    let userHandler: UILabel
  • Undocumented

    Declaration

    Swift

    let broadcastTableViewTag: Int
  • if this variable is set it will scroll to the videos of the user

    Declaration

    Swift

    var scrollToBroadcastSection: Bool
  • Last used height for profile details. User to detect when details height changes.

    Declaration

    Swift

    var profileDetailsViewHeight: CGFloat
  • user shows List Model

    Declaration

    Swift

    var showItemListModel: SWShowItemListModel
  • Current Page Displayed

    Declaration

    Swift

    var currentShowPage: Int
  • Var to store more show needs to be fetched

    Declaration

    Swift

    var lastShowFetched: Bool
  • Var to Tells profile screen displayed logged in User

    Declaration

    Swift

    var displayingShowsForLoggedInUser: Bool
  • Undocumented

    Declaration

    Swift

    let userDetailsSectionIndex: Int
  • Undocumented

    Declaration

    Swift

    let showsSectionIndex: Int
  • Undocumented

    Declaration

    Swift

    let upcomingHeaderSectionIndex: Int
  • Undocumented

    Declaration

    Swift

    let upcomingSectionIndex: Int
  • Undocumented

    Declaration

    Swift

    let broadcastsHeaderSectionIndex: Int
  • Undocumented

    Declaration

    Swift

    let broadcastsSectionIndex: Int
  • Undocumented

    See more

    Declaration

    Swift

    enum LoginStateRedirection
  • Undocumented

    Declaration

    Swift

    var isBroadcastsExpanded: Bool
  • Undocumented

    Declaration

    Swift

    var scheduledBroadcasts: [SWStream]?
  • Undocumented

    Declaration

    Swift

    var loginRedirectionState: SWProfileViewController.LoginStateRedirection
  • Boolean value indicates if there is more broadcasts to be loaded in pages.

    Declaration

    Swift

    var isMoreDataAvailable: Bool
  • Undocumented

    Declaration

    Swift

    @IBOutlet
    weak var broadcastsTableView: UITableView!
  • HttpService used to follow / unfollow associated user. This reference is always nil unless there is an active follow / unfollow HTTP call.

    Declaration

    Swift

    var httpServiceFollow: HttpService?
  • HttpService used to load user’s broadcasts. This reference is always nil unless there is an active broadcasts HTTP call.

    Declaration

    Swift

    var httpServiceBroadcasts: HttpService?
  • HttpService used to load user’s profile. This reference is always nil unless there is an active profile details HTTP call.

    Declaration

    Swift

    var httpServiceProfile: HttpService?
  • Hold navigation bar color to restore it when this view is going to be dismissed.

    Declaration

    Swift

    var previousNavigationbarColor: UIColor!
  • Undocumented

    Declaration

    Swift

    var profileImagePickerController: UIImagePickerController
  • Undocumented

    Declaration

    Swift

    var broadcastsListVC: SWBroadcastsListTableViewController?
  • Undocumented

    Declaration

    Swift

    var scheduledBroadcastsListVC: SWBroadcastsListTableViewController?
  • Undocumented

    Declaration

    Swift

    let refresher: UIRefreshControl
  • Profile view uses white status bar.

    Declaration

    Swift

    override var preferredStatusBarStyle: UIStatusBarStyle { get }
  • Undocumented

    Declaration

    Swift

    @IBAction
    func startBroadcastsBtnClicked(_ sender: Any)
  • Show action sheet which contains an option to block the user.

    Declaration

    Swift

    @IBAction
    func optionsBtnClicked(_ sender: Any)

    Parameters

    sender

    <#sender description#>

  • Undocumented

    Declaration

    Swift

    func openMoreOptionsSheet()
  • Handler for tapping Following button.

    Declaration

    Swift

    @IBAction
    func followingBtnClicked(_ sender: Any)

    Parameters

    sender

    <#sender description#>

  • Handler for tapping Followers button.

    Declaration

    Swift

    @IBAction
    func followersBtnClicked(_ sender: Any)

    Parameters

    sender

    <#sender description#>

  • Handler for tapping Videos button.

    Declaration

    Swift

    @IBAction
    func videosBtnClicked(_ sender: Any)

    Parameters

    sender

    <#sender description#>

  • Handler for navigation bar back button.

    Declaration

    Swift

    @IBAction
    func backBtnClicked(_ sender: Any)

    Parameters

    sender

    <#sender description#>

  • Handler for tapping settings button.

    Declaration

    Swift

    @IBAction
    func settingsBtnClicked(_ sender: Any)

    Parameters

    sender

    <#sender description#>

  • Undocumented

    Declaration

    Swift

    func openSettingsViewController()
  • Handler for tapping edit profile button.

    Declaration

    Swift

    @IBAction
    func editProfileBtnClicked(_ sender: Any)

    Parameters

    sender

    <#sender description#>

  • Handler for tapping follow button.

    Declaration

    Swift

    @IBAction
    func followBtnClicked(_ sender: Any)

    Parameters

    sender

    <#sender description#>

  • <#Description#>

    Declaration

    Swift

    @IBAction
    func facebookBtnClicked(_ sender: Any)

    Parameters

    sender

    <#sender description#>

  • Undocumented

    Declaration

    Swift

    @IBAction
    func instagramBtnClicked(_ sender: Any)
  • Undocumented

    Declaration

    Swift

    @IBAction
    func youtubeBtnClicked(_ sender: Any)
  • Undocumented

    Declaration

    Swift

    @IBAction
    func linkedinBtnClicked(_ sender: Any)
  • Undocumented

    Declaration

    Swift

    @IBAction
    func twitterBtnClicked(_ sender: Any)
  • <#Description#>

    Declaration

    Swift

    @objc
    func refreshAllData()
  • Load associated user’s profile.

    Declaration

    Swift

    func loadUserProfile()
  • Loads all user’s scheduled, upcoming and live broadcasts.

    Declaration

    Swift

    func loadScheduledBroadcasts()
  • Unblock associated user.

    Declaration

    Swift

    func unblockAssociatedUser()
  • 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