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
Maximum duration of the media for which this rule can be applied (in milliseconds).
Link copied to clipboard
Minimum duration of the media for which this rule can be applied (in milliseconds).
Link copied to clipboard
Minimum absolute time to respect between ad breakds (in milliseconds).

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.