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

    session

    The 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

    session

    The ended session.

    error

    The error, if any; otherwise nil.

  • Called when a session has failed to start.

    Declaration

    Swift

    func castManagerDidFailToStart(_ session: GCKSession, withError error: Error)

    Parameters

    session

    The session.

    error

    The 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

    error

    The error describing the failure.

  • Called when a Cast session is resumed.

    Declaration

    Swift

    func castManagerDidResume(_ session: GCKSession)

    Parameters

    session

    The resumed session.

  • castManagerdidUpdateQueue(_:) Default implementation

    Called when the queue updates with the next item information.

    Default Implementation

    Declaration

    Swift

    func castManagerdidUpdateQueue(_ nextQueueItem: GCKMediaQueueItem?)

    Parameters

    nextQueueItem

    The next item in the queue, or nil if no next item exists.

  • Called when a custom message is received from the Cast receiver.

    Default Implementation

    Declaration

    Swift

    func castManagerDidReceiveCustomMessage(message: Message?)

    Parameters

    message

    The custom message received from the receiver, or nil if parsing failed.