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
Adit return value astrue. Player playing actual content it return value asfalseDeclaration
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
oldStateThe previous state of the player.
newStateThe new state of the player.
-
API To validate the seek position for live ad playback.
Declaration
Swift
func resolveSeekIntent(position: TimeInterval) -> TimeInterval?Parameters
positionThe 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()