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
UIviewfor the playerDeclaration
Swift
@IBOutlet var player: UIView! -
This is a
NSLayoutConstraintfor playerDeclaration
Swift
@IBOutlet var playerAspectRatio: NSLayoutConstraint! -
This is a
playerNavigationViewto show the side bar forWikiDeclaration
Swift
@IBOutlet var navigationView: playerNavigationView! -
This is variable to store
contentDeclaration
Swift
var content: Content! -
This is a deleaget for playerView
Declaration
Swift
var delegate: PlayerViewControllerDelegate? -
Initialise the state of View Controller set to
.hiddenfor 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
PlayerView Class Reference