PlayerView
class PlayerView : UIView, UITableViewDelegate, UITableViewDataSource, UIGestureRecognizerDelegate, PlayerViewHeaderCellDelegate
Player view is the view displayed when user tap a content
-
Table view for the cells
Declaration
Swift
@IBOutlet var tableView: UITableView!
-
This is a
UIview
for the playerDeclaration
Swift
@IBOutlet var player: UIView!
-
This is a
NSLayoutConstraint
for playerDeclaration
Swift
@IBOutlet var playerAspectRatio: NSLayoutConstraint!
-
This is a
playerNavigationView
to show the side bar forWiki
Declaration
Swift
@IBOutlet var navigationView: playerNavigationView!
-
This is variable to store
content
Declaration
Swift
var content: Content!
-
This is a deleaget for playerView
Declaration
Swift
var delegate: PlayerViewControllerDelegate?
-
Initialise the state of View Controller set to
.hidden
for defaultDeclaration
Swift
var state: stateOfViewController
-
The direction
Declaration
Swift
var direction: Direction
-
This is a view for the pdf
Declaration
Swift
var pdfView: PDFView
-
This is the controller for the player
Declaration
Swift
let videoPlayerViewController: AVPlayerViewController
-
This is a variable to show if the content is liked
Declaration
Swift
var contentLiked: Bool
-
This is a variable to show if a conten is disliked
Declaration
Swift
var contentDisliked: Bool
-
Undocumented
Declaration
Swift
var refreshControl: UIRefreshControl
-
Customise the player View
Declaration
Swift
func customisation()
-
Refresh the view, when a notification is being sent with value refresh
Declaration
Swift
@objc func refresh(sender _: Any)
-
Show the sidebar
Declaration
Swift
@IBAction func showNavigation(_: Any)
-
Process the animate
Declaration
Swift
func animate()
-
Undocumented
Declaration
Swift
func changeValues(scaleFactor: CGFloat)
-
Undocumented
Declaration
Swift
@objc func resumePlayerView()
-
Undocumented
Declaration
Swift
@objc func newPlayerView(_ notification: Notification)
-
Declaration
Swift
func onLikeTap(completion: @escaping () -> Void)
-
Declaration
Swift
func onDisLikeTap(completion: @escaping () -> Void)
-
Undocumented
Declaration
Swift
@IBAction func minimizeGesture(_ sender: UIPanGestureRecognizer)
-
Undocumented
Declaration
Swift
func setContent(content: Content)
-
Undocumented
Declaration
Swift
func setVideo(video: Video)
-
Undocumented
Declaration
Swift
func setPDF(pdf: PDF)
-
Undocumented
Declaration
Swift
func tableView(_: UITableView, numberOfRowsInSection _: 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
func tableView(_: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat
-
Undocumented
Declaration
Swift
@objc func returnFromPlayerView()
-
Undocumented
Declaration
Swift
override func awakeFromNib()
-
Undocumented
Declaration
Swift
deinit