Instream SDK
7.24.1
androidJvm
Instream SDK
/
com.smartadserver.android.instreamsdk.adrules
/
SVSAdRule
SVSAd
Rule
open
class
SVSAdRule
:
Comparable
<
T
>
,
Parcelable
,
Serializable
Class representing an ad rule for a a particular media duration.
Members
Constructors
SVSAd
Rule
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
ad
Rule
Datas
Link copied to clipboard
@
NonNull
@get:
NonNull
val
adRuleDatas
:
Array
<
SVSAdRuleData
>
set of SVSAdRuleData objects that describe preroll, midroll, postroll and overlay instances
max
Duration
Link copied to clipboard
val
maxDuration
:
Long
min
Duration
Link copied to clipboard
val
minDuration
:
Long
minimum
Delay
Between
Ad
Breaks
Link copied to clipboard
val
minimumDelayBetweenAdBreaks
:
Long
Functions
compare
To
Link copied to clipboard
open
fun
compareTo
(
@
NonNull
otherAdRule
:
SVSAdRule
)
:
Int
Compare this
SVSAdRule
to another
SVSAdRule
for ordering
get
Ad
Rule
Data
Link copied to clipboard
@
Nullable
open
fun
getAdRuleData
(
@
Nullable
adBreakType
:
SVSAdBreakType
)
:
SVSAdRuleData
Returns the SVSAdRuleData associated with a given ad break type if available.
has
Ad
Break
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.