FLCastManagerDelegate
public protocol FLCastManagerDelegate : AnyObject
Delegate for listening to Cast session events.
-
Called when the Cast manager is initialized successfully.
Declaration
Swift
func onCastManagerInitializationSuccess() -
Called when Cast manager initialization fails.
Declaration
Swift
func onCastManagerInitializationFailure() -
Called when a session has been successfully started.
Declaration
Swift
func castManagerDidStart(_ session: GCKCastSession)Parameters
sessionThe started session.
-
Called when a session has ended, either by request or due to an error.
Declaration
Swift
func castManagerDidEnd(_ session: GCKSession, withError error: Error?)Parameters
sessionThe ended session.
errorThe error, if any; otherwise nil.
-
Called when a session has failed to start.
Declaration
Swift
func castManagerDidFailToStart(_ session: GCKSession, withError error: Error)Parameters
sessionThe session.
errorThe error encountered.
-
Called when the receiver registers the device successfully.
Declaration
Swift
func castManagerDidRegisterDevice() -
Called when device registration fails on the receiver.
Declaration
Swift
func castManagerDidFailToRegisterDevice(with error: Error)Parameters
errorThe error describing the failure.
-
Called when a Cast session is resumed.
Declaration
Swift
func castManagerDidResume(_ session: GCKSession)Parameters
sessionThe resumed session.
-
castManagerdidUpdateQueue(_:Default implementation) Called when the queue updates with the next item information.
Default Implementation
Declaration
Swift
func castManagerdidUpdateQueue(_ nextQueueItem: GCKMediaQueueItem?)Parameters
nextQueueItemThe next item in the queue, or nil if no next item exists.
-
castManagerDidReceiveCustomMessage(message:Default implementation) Called when a custom message is received from the Cast receiver.
Default Implementation
Declaration
Swift
func castManagerDidReceiveCustomMessage(message: Message?)Parameters
messageThe custom message received from the receiver, or nil if parsing failed.