GfpVideoAdScheduleManager

class GfpVideoAdScheduleManager(    context: Context,     adScheduleParam: VideoAdScheduleParam,     adParam: AdParam,     adVideoPlayer: AdVideoPlayer,     adContainer: FrameLayout)

Manager class for handling video ad scheduling and playback. Controls the lifecycle of video ads, including loading, playing, and managing ad breaks.

Constructors

Link copied to clipboard
constructor(    context: Context,     adScheduleParam: VideoAdScheduleParam,     adParam: AdParam,     adVideoPlayer: AdVideoPlayer,     adContainer: FrameLayout)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var gfpVideoProperties: <Error class: unknown class>?

Properties for video ad playback

Functions

Link copied to clipboard

Handles video ad clicked event

Link copied to clipboard

Handles video ad completed event

Link copied to clipboard
fun adError(ad: GfpVideoAd, error: GfpError)

Handles video ad error event

Link copied to clipboard

Handles video ad loaded event

Link copied to clipboard

Handles non-linear ad start ready event

Link copied to clipboard

Handles video schedule completion event

Link copied to clipboard

Handles video ad started event

Link copied to clipboard

Handles video ad start ready event

Link copied to clipboard

Handles CTA button click event

Link copied to clipboard

Handles content pause request event

Link copied to clipboard

Handles content resume request event

Link copied to clipboard
fun destroy()

Destroys schedule processor and cleans up resources

Link copied to clipboard

Hides overlay UI in linear ad

Link copied to clipboard

Hides non-linear (banner or text) ad container

Link copied to clipboard
fun load()

Loads the schedule and then loads the video ad

Link copied to clipboard
fun loadWithAdSchedule(adScheduleResponse: VideoScheduleResponse)

Loads schedule with custom response

Link copied to clipboard
fun pause()

Pauses schedule processing and video ad playback

Link copied to clipboard
fun resume()

Resumes schedule processing and video ad playback

Link copied to clipboard
fun setAdContainer(adContainer: FrameLayout)

Sets the video ad container

Link copied to clipboard

Sets the video ad listener

Link copied to clipboard

Sets the ad schedule listener

Link copied to clipboard
fun setAdvertiseParams(advertiseParams: String?)

Sets advertisement parameters from a JSON string Overwrites VideoAdScheduleParam and AdParam from the 'shareAdvertiseParams'

Link copied to clipboard

Sets custom attributes for remind text ad view

Link copied to clipboard

Sets the container for outer remind text ad view

Link copied to clipboard

Sets the QoE listener

Link copied to clipboard

Sets video ad options

Link copied to clipboard

Shows overlay UI in linear ad

Link copied to clipboard

Shows non-linear (banner or text) ad container

Link copied to clipboard
fun skip()

Skips the current video ad