AdProgressInfo

interface AdProgressInfo


Represents the progress within this ad break.

Summary

Public functions

Double

Returns total ad break duration (in seconds).

Double

Returns total ad period duration (in seconds).

Int

Returns the position of current ad within the ad break, starting with 1.

Double

Returns current time within the ad (in seconds).

Double

Returns duration of current ad (in seconds).

Int

Returns the total number of ads in this ad break.

Public functions

getAdBreakDuration

fun getAdBreakDuration(): Double

Returns total ad break duration (in seconds).

getAdPeriodDuration

fun getAdPeriodDuration(): Double

Returns total ad period duration (in seconds). This includes the duration of ads in the pod as well as slate.

getAdPosition

fun getAdPosition(): Int

Returns the position of current ad within the ad break, starting with 1.

getCurrentTime

fun getCurrentTime(): Double

Returns current time within the ad (in seconds).

getDuration

fun getDuration(): Double

Returns duration of current ad (in seconds).

getTotalAds

fun getTotalAds(): Int

Returns the total number of ads in this ad break.