FLAdEventHandler

public protocol FLAdEventHandler : AnyObject

Undocumented

  • Providing intervals to draw cue points in player progress

    Declaration

    Swift

    var cuePoints: [Int] { get }
  • Use to get ad events in this call back

    Declaration

    Swift

    var adEventsCallback: AdEventHandlerDelegate? { get set }
  • Player to get valid player context

    When Player playing an Ad it return value as true. Player playing actual content it return value as false

    Declaration

    Swift

    var isAdPlaying: Bool { get }
  • Getting current progress of player

    Declaration

    Swift

    func processPlaybackProgess(player: Player)
  • API to handle playback state changes.

    Declaration

    Swift

    func playbackStateDidChange(oldState: PlayerState, newState: PlayerState)

    Parameters

    oldState

    The previous state of the player.

    newState

    The new state of the player.

  • API To validate the seek position for live ad playback.

    Declaration

    Swift

    func resolveSeekIntent(position: TimeInterval) -> TimeInterval?

    Parameters

    position

    The position in seconds to seek to.

    Return Value

    The resolved position in seconds if valid, otherwise nil.

  • API to force completion of all remaining ads in the current ad break

    Declaration

    Swift

    func forceCompleteAdBreak()