FireTVPlayerWireframe

public struct FireTVPlayerWireframe : FireTVPlayerWireframeProtocol

Responsible for creating a FireTVPlayerViewController and for configuring an implementation of the FireTVPlayerViewProtocol

  • Makes a ready to use FireTVPlayerViewController Uses Error as the title and You are not connected to a wifi network. The connection is required. as the message of the no wifi alert

    Throws

    an error if something unexpected happens during the creation process

    Declaration

    Swift

    public static func makeViewController(forPlayer player: RemoteMediaPlayer, theme: FireTVPlayerThemeProtocol, delegate: FireTVPlayerDelegateProtocol?) throws -> FireTVPlayerViewController

    Parameters

    player

    the player which should be represented

    theme

    the theme for the view controller

    delegate

    the delegate which will be notified about actions

    noWifiAlertTitle

    a custom title for the no wifi alert

    noWifiAlertMessage

    a custom message for the no wifi alert

    Return Value

    a configured FireTVPlayerViewController instance

  • Configures the given view to be ready to go Uses Error as the title and You are not connected to a wifi network. The connection is required. as the message of the no wifi alert

    Throws

    an error if something unexpected happens during configuration

    Declaration

    Swift

    public static func configureView(_ view: FireTVPlayerViewProtocol, withPlayer player: RemoteMediaPlayer, theme: FireTVPlayerThemeProtocol, delegate: FireTVPlayerDelegateProtocol?) throws

    Parameters

    view

    view which should be configured

    player

    player which is represented by the view

    theme

    theme for the view

    delegate

    delegate which will be notified about actions

    noWifiAlertTitle

    a custom title for the no wifi alert

    noWifiAlertMessage

    a custom message for the no wifi alert