MockFireTVPlayerWireframe
public struct MockFireTVPlayerWireframe : FireTVPlayerWireframeProtocol
Mock implementation of FireTVPlayerWireframeProtocol
Use only for creating a mock player view controller (testing purposes)
-
Declaration
Swift
public static func makeViewController(forPlayer player: RemoteMediaPlayer, theme: FireTVPlayerThemeProtocol, delegate: FireTVPlayerDelegateProtocol?) throws -> FireTVPlayerViewController
-
Mock implementation: does nothing!
Declaration
Swift
public static func configureView(_ view: FireTVPlayerViewProtocol, withPlayer player: RemoteMediaPlayer, theme: FireTVPlayerThemeProtocol, delegate: FireTVPlayerDelegateProtocol?) throws
-
Creates a mock player view controller
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 -
Mock implementation: does nothing!
Declaration
Swift
public static func configureView(_ view: FireTVPlayerViewProtocol, withPlayer player: RemoteMediaPlayer, theme: FireTVPlayerThemeProtocol, delegate: FireTVPlayerDelegateProtocol?, noWifiAlertTitle: String, noWifiAlertMessage: String)