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 moreDeclaration
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 imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any])
-
Undocumented
Declaration
Swift
func imageCropViewControllerDidCancelCrop(_ controller: RSKImageCropViewController)
-
Undocumented
Declaration
Swift
func imageCropViewController(_ controller: RSKImageCropViewController, didCropImage croppedImage: UIImage, usingCropRect cropRect: CGRect)
-
Undocumented
Declaration
Swift
func imageCropViewController(_ controller: RSKImageCropViewController, didCropImage croppedImage: UIImage, usingCropRect cropRect: CGRect, rotationAngle: CGFloat)
-
Undocumented
Declaration
Swift
func updateUserProfileImage(image: UIImage)
-
Handling lout of the applecation to show alert before logging out.
Declaration
Swift
func logoutFromApp()
-
Handler for tapping set profile photo button.
Declaration
Swift
@IBAction func setProfilePhotoBtnClicked(_ sender: Any)
Parameters
sender
<#sender description#>
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat
-
Undocumented
Declaration
Swift
func tableView(_ tableView: UITableView, estimatedHeightForRowAt indexPath: IndexPath) -> CGFloat
-
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 tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
-
Undocumented
Declaration
Swift
override func viewDidLoad()
-
Undocumented
Declaration
Swift
deinit
-
Undocumented
Declaration
Swift
@objc func dismissProfileView()
-
Undocumented
Declaration
Swift
@objc func onBroadcastDeleted()
-
Undocumented
Declaration
Swift
override func viewDidAppear(_ animated: Bool)
-
Undocumented
Declaration
Swift
func navigationController(_ navigationController: UINavigationController, willShow viewController: UIViewController, animated: Bool)
-
Undocumented
Declaration
Swift
override func viewWillAppear(_ animated: Bool)
-
Undocumented
Declaration
Swift
func fetchShows()
-
Undocumented
Declaration
Swift
func fetchMoreShows()
-
Undocumented
Declaration
Swift
func scrollViewDidScroll(_ scrollView: UIScrollView)
-
Undocumented
Declaration
Swift
func updateImageViewCellOffset(_ cell: SWFeedListTableViewCell)
-
Undocumented
Declaration
Swift
override func viewWillDisappear(_ animated: Bool)
-
Undocumented
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
-
Undocumented
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)
-
Undocumented
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
-
Undocumented
Declaration
Swift
func numberOfSections(in collectionView: UICollectionView) -> Int
-
Undocumented
Declaration
Swift
@objc func showCreated()
-
Undocumented
Declaration
Swift
func channelActionBtnTapped(show: SWShowModel)
-
Undocumented
Declaration
Swift
func showMoreActionBtnTapped(show: SWShowModel)
-
Undocumented
Declaration
Swift
func bookmarkBtnClickedFor(show: SWShowModel)
-
Undocumented
Declaration
Swift
func loginPrompt()
-
Undocumented
Declaration
Swift
func loginSuccessful()
-
Undocumented
Declaration
Swift
func navigateToComments(withStream stream: SWStream)