FireTVSelectionViewProtocol

public protocol FireTVSelectionViewProtocol : AnyObject

Protocol representing the requirements of a fire tv selection view Methods will be called by an implementation of the FireTVSelectionPresenterProtocol

  • Property for storing the dependencies of the view Will be set by the methods of the FireTVSelectionWireframe

    Declaration

    Swift

    var dependencies: FireTVSelectionViewControllerDependenciesProtocol? { get set }
  • The table view presenting the found fire tvs

    Declaration

    Swift

    var tableView: UITableView! { get }
  • Called by the FireTVSelectionWireframe Store the presenter in a property The presenter is the counterpart of the view in the VIPER architecture He is responsible for updating the view

    Declaration

    Swift

    func setPresenter(_ presenter: FireTVSelectionPresenterProtocol)

    Parameters

    presenter

    presenter for the view

  • Called by the presenter to pass the text for the no devices label to the view

    Declaration

    Swift

    func setNoDevicesLabelText(_ noDevicesLabelText: String)

    Parameters

    noDevicesLabelText

    text to show in the no devices label

  • Presenter calls the method to tell the view to use the given theme

    Declaration

    Swift

    func setTheme(_ theme: FireTVSelectionThemeProtocol)

    Parameters

    theme

    theme which should be set

  • Called by the presenter to pass a data source for the table view of the view

    Declaration

    Swift

    func setTableViewDataSource(dataSource: UITableViewDataSource)

    Parameters

    dataSource

    table view data source

  • Presenter calls the method to pass a delegate for the table view to the view

    Declaration

    Swift

    func setTableViewDelegate(delegate: UITableViewDelegate)

    Parameters

    delegate

    table view delegate

  • Called by the presenter to tell the view to reload the data of the table view

    Declaration

    Swift

    func reloadData()
  • updateUI(withViewModel:) Default implementation

    Called by the presenter to tell the view to update the ui using the given view model without an animation

    Default Implementation

    Default implementation updating the ui using the given view model without an animation

    Declaration

    Swift

    func updateUI(withViewModel viewModel: FireTVSelectionViewViewModel)

    Parameters

    viewModel

    view model for the ui update

  • Presenter calls the method to tell the view to update the ui with or without an animation using the given view model

    Declaration

    Swift

    func updateUI(withViewModel viewModel: FireTVSelectionViewViewModel, animated: Bool)

    Parameters

    viewModel

    view model for the ui update

    animated

    boolean value indicating if the ui update should be animated or not