FireTVManager
public final class FireTVManager : FireTVManagerProtocol
Responsible for discovering FireTVs in your local network
Observe the devicesObservable
to be notified about changes
to the internal devices list (device discovered or device lost)
-
Observe the internal devices list using this observable
Declaration
Swift
public var devicesObservable: Observable<[RemoteMediaPlayer]> { get }
-
Get the current devices list
Declaration
Swift
public var devices: [RemoteMediaPlayer] { get }
-
Initializes a
FireTVManager
instance All the magic (reachability and discovery setup) happens under the hoodThrows
an error if the internal reachability service couldn’t be initializedDeclaration
Swift
public init() throws
-
Starts discovery in your local network
Throws
error if reachability service failed to start listeningDeclaration
Swift
public func startDiscovery(forPlayerID playerID: String) throws
Parameters
playerID
playerID to be searched
-
Stops discovery in your local network
Declaration
Swift
public func stopDiscovery()