| Package | com.adobe.mediacore.timeline.advertising |
| Class | public final class AdBreak |
| Inheritance | AdBreak Object |
| Property | Defined By | ||
|---|---|---|---|
| ads : Vector.<Ad> [read-only]
The ads contained in this ad break. | AdBreak | ||
| duration : Number [read-only]
The total duration of the ad break. | AdBreak | ||
| tracker : ContentTracker [read-only]
Analytics provider for this ad break. | AdBreak | ||
| type : String [read-only] | AdBreak | ||
| Method | Defined By | ||
|---|---|---|---|
Default constructor. | AdBreak | ||
[static]
Helper method for creating ad breaks. | AdBreak | ||
| ads | property |
ads:Vector.<Ad> [read-only] The ads contained in this ad break. This method returns a copy of the internal vector - so it is recommended to save the return value in a local variable and use that instead. We do so for preventing accidental/unwanted modifications of the ad vector.
public function get ads():Vector.<Ad>| duration | property |
duration:Number [read-only] The total duration of the ad break. Is is calculated by adding the duration of all linear ads contained within the ad break.
public function get duration():Number| tracker | property |
tracker:ContentTracker [read-only] Analytics provider for this ad break.
public function get tracker():ContentTracker| type | property |
type:String [read-only] public function get type():String| AdBreak | () | Constructor |
public function AdBreak(ads:Vector.<Ad>, tracker:ContentTracker = null, type:String = null)Default constructor.
Parametersads:Vector.<Ad> — the ads which are grouped together.
| |
tracker:ContentTracker (default = null) — The analytics provider for this ad break.
| |
type:String (default = null) |
| create | () | method |
public static function create(ads:Vector.<Ad>, tracker:ContentTracker = null, type:String = null):AdBreakHelper method for creating ad breaks.
Parameters
ads:Vector.<Ad> — the ads which will be contained in this ad break.
| |
tracker:ContentTracker (default = null) — The analytics provider for this ad break.
| |
type:String (default = null) |
AdBreak — a valid ad break
|