SVSAdRule

Class representing an ad rule for a a particular media duration.

Constructors

Link copied to clipboard
constructor(minDuration: Long, maxDuration: Long, @NonNull adRuleDatas: Array<SVSAdRuleData>)
Constructor
constructor(minDuration: Long, maxDuration: Long, @NonNull adRuleDatas: Array<SVSAdRuleData>, minimumDelayBetweenAdBreaks: Long)
Constructor

Properties

Link copied to clipboard
set of SVSAdRuleData objects that describe preroll, midroll, postroll and overlay instances
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun compareTo(@NonNull otherAdRule: SVSAdRule): Int
Compare this SVSAdRule to another SVSAdRule for ordering
Link copied to clipboard
Returns the SVSAdRuleData associated with a given ad break type if available.
Link copied to clipboard
open fun hasAdBreak(@Nullable adBreakType: SVSAdBreakType): Boolean
Returns whether the ad break rule defines an ad break for a given type.