ServiceFactory
public final class ServiceFactory : ServiceFactoryProtocol
Factory for creating services used by FireTVKit Most services the factory creates are internal Only the method for creating a player service is public
-
Makes a player service for the given player
Declaration
Swift
public static func makePlayerService(withPlayer player: RemoteMediaPlayer) -> PlayerServiceProtocol
Parameters
player
the player you want to control
Return Value
a player service instance conforming to the
PlayerServiceProtocol