XALinear Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | NSCopying XAPlaying |
| Declared in | XALinear.h |
Overview
A linear creative is any creative that has a dependency on time. Typically, this is either audio or video creative.
The XALinear class has no functionality on its own and is meant to be subclassed. The class implements XAPlaying, which facilitates how to control the creative’s playback.
See DAAST 3.2.1
duration
The duration of the creative.
@property (readonly) NSTimeInterval durationDeclared In
XALinear.h
mediaFiles
The media files for the creative.
@property (nonnull, readonly) NSArray *mediaFilesDeclared In
XALinear.h
trackingEvents
Tracking events for the linear
@property (nonnull, readonly) NSArray *trackingEventsDeclared In
XALinear.h
adInteractions
The ad interactions
@property (nonnull, readonly) NSArray *adInteractionsDeclared In
XALinear.h
settings
The settings for the linear.
@property (nonatomic, readonly, nonnull) XASettings *settingsDiscussion
The settings for the linear.
Declared In
XALinear.h
+ linearWithDuration:mediaFiles:trackingEvents:adInteractions:
Create a new linear based on the required elements.
+ (nonnull XALinear *)linearWithDuration:(NSTimeInterval)duration mediaFiles:(nonnull NSArray *)mediaFiles trackingEvents:(nonnull NSArray *)trackingEvents adInteractions:(nonnull NSArray *)adInteractionsParameters
duration |
The duration of the linear |
|---|---|
mediaFiles |
Mediafiles for the linear |
trackingEvents |
Tracking events that fire during playback |
adInteractions |
Interactions for the linear |
Return Value
A new linear creative
Discussion
Create a new linear based on the required elements.
Declared In
XALinear.h
+ linearWithDuration:mediaFiles:trackingEvents:adInteractions:settings:
Create a new linear based on the required elements.
+ (nonnull XALinear *)linearWithDuration:(NSTimeInterval)duration mediaFiles:(nonnull NSArray *)mediaFiles trackingEvents:(nonnull NSArray *)trackingEvents adInteractions:(nonnull NSArray *)adInteractions settings:(nonnull XASettings *)settingsParameters
duration |
The duration of the linear |
|---|---|
mediaFiles |
Mediafiles for the linear |
trackingEvents |
Tracking events that fire during playback |
adInteractions |
Interactions for the linear |
settings |
Settings for linear playback |
Return Value
A new linear creative
Discussion
Create a new linear based on the required elements.
Declared In
XALinear.h
– initWithDuration:mediaFiles:trackingEvents:adInteractions:settings:
Create a new linear based on the required elements.
- (nonnull instancetype)initWithDuration:(NSTimeInterval)duration mediaFiles:(nonnull NSArray *)mediaFiles trackingEvents:(nonnull NSArray *)trackingEvents adInteractions:(nonnull NSArray *)adInteractions settings:(nonnull XASettings *)settingsParameters
duration |
The duration of the linear |
|---|---|
mediaFiles |
Mediafiles for the linear |
trackingEvents |
Tracking events that fire during playback |
adInteractions |
Interactions for the linear |
settings |
Settings for linear playback |
Return Value
A new linear creative
Discussion
Create a new linear based on the required elements.
Declared In
XALinear.h