java.lang.Object | |
↳ | com.smartadserver.android.instreamsdk.adrules.SVSAdRule |
Class representing an ad rule for a a particular media duration.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SVSAdRule(long minDuration, long maxDuration, SVSAdRuleData[] adRuleDatas)
Constructor
| |||||||||||
SVSAdRule(long minDuration, long maxDuration, SVSAdRuleData[] adRuleDatas, long minimumDelayBetweenAdBreaks)
Constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | compareTo(SVSAdRule otherAdRule) | ||||||||||
SVSAdRuleData |
getAdRuleData(SVSAdBreakType adBreakType)
Returns the SVSAdRuleData associated with a given ad break type if available.
| ||||||||||
SVSAdRuleData[] |
getAdRuleDatas()
Returns the array of SVSAdRuleData for this
SVSAdRule
| ||||||||||
long |
getMaxDuration()
Returns the maximum duration (in milliseconds) of the media for which this rule can be applied
| ||||||||||
long |
getMinDuration()
Returns the minimum duration (in milliseconds) of the media for which this rule can be applied
| ||||||||||
long |
getMinimumDelayBetweenAdBreaks()
Returns the minimum time in milliseconds (absolute time, not playback time) between displaying ad breaks
| ||||||||||
boolean |
hasAdBreak(SVSAdBreakType adBreakType)
Returns whether the ad break rule defines an ad break for a given type.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
From interface
java.lang.Comparable
|
Constructor
minDuration | minimum duration (in milliseconds) for a content video to match this rule |
---|---|
maxDuration | maximum duration (in milliseconds) for a content video to match this rule |
adRuleDatas | an array of SVSAdRuleData objects defining the ad breaks of this ad rule |
IllegalArgumentException |
---|
Constructor
minDuration | minimum duration (in milliseconds) for a content video to match this rule |
---|---|
maxDuration | maximum duration (in milliseconds) for a content video to match this rule |
adRuleDatas | an array of SVSAdRuleData objects defining the ad breaks of this ad rule |
minimumDelayBetweenAdBreaks | the minimum absolute time (in milliseconds) to respect between 2 consecutive ad breaks |
IllegalArgumentException |
---|
Returns the SVSAdRuleData associated with a given ad break type if available.
adBreakType | the ad break type. |
---|
Returns the maximum duration (in milliseconds) of the media for which this rule can be applied
Returns the minimum duration (in milliseconds) of the media for which this rule can be applied
Returns the minimum time in milliseconds (absolute time, not playback time) between displaying ad breaks
Returns whether the ad break rule defines an ad break for a given type.
adBreakType | the ad break type. |
---|