FireTVPlayerWireframe
public struct FireTVPlayerWireframe : FireTVPlayerWireframeProtocol
Responsible for creating a FireTVPlayerViewController
and for configuring an implementation of the FireTVPlayerViewProtocol
-
Makes a ready to use
FireTVPlayerViewController
Throws
an error if something unexpected happens during the creation processDeclaration
Swift
public static func makeViewController(forPlayer player: RemoteMediaPlayer, theme: FireTVPlayerThemeProtocol, delegate: FireTVPlayerDelegateProtocol?, noWifiAlertTitle: String, noWifiAlertMessage: String) 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
Throws
an error if something unexpected happens during configurationDeclaration
Swift
public static func configureView(_ view: FireTVPlayerViewProtocol, withPlayer player: RemoteMediaPlayer, theme: FireTVPlayerThemeProtocol, delegate: FireTVPlayerDelegateProtocol?, noWifiAlertTitle: String, noWifiAlertMessage: String) 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
-
Makes a ready to use
FireTVPlayerViewController
UsesError
as the title andYou are not connected to a wifi network. The connection is required.
as the message of the no wifi alertThrows
an error if something unexpected happens during the creation processDeclaration
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 andYou are not connected to a wifi network. The connection is required.
as the message of the no wifi alertThrows
an error if something unexpected happens during configurationDeclaration
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