FireTVPlayerPresenterProtocol

public protocol FireTVPlayerPresenterProtocol : AnyObject

Protocol describing the requirements of a FireTVPlayerPresenter The presenter is responsible for a FireTVViewProtocol and needs to be notified about certain actions happening in the view Call the appropriate method if you implement a custom fire tv player view

  • Tell the presenter that your view did load

    Declaration

    Swift

    func viewDidLoad()
  • Tell the presenter that your view will appear

    Declaration

    Swift

    func viewWillAppear()
  • Call this method to let the presenter do the necessary preparations for closing the view

    Declaration

    Swift

    func didPressCloseButton()
  • Call this method if you want to rewind the player for 10 seconds

    Declaration

    Swift

    func didPressRewind10sButton()
  • Call this method to send the play action to the player

    Declaration

    Swift

    func didPressPlayButton()
  • Call this method to send the pause action to the player

    Declaration

    Swift

    func didPressPauseButton()
  • Call this method to send the stop action to the player

    Declaration

    Swift

    func didPressStopButton()
  • Call this method to fast forward the player for 10 seconds

    Declaration

    Swift

    func didPressFastForward10sButton()
  • Updates the position label text using a position

    Declaration

    Swift

    func didChangePositionValue(_ position: Float)

    Parameters

    position

    the updated position

  • Updates the playback position of the player

    Declaration

    Swift

    func didChangePosition(_ position: Float)

    Parameters

    position

    the new player position