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 duration

Discussion

The duration of the creative.

See DAAST 3.2.1.2

Declared In

XALinear.h

  mediaFiles

The media files for the creative.

@property (nonnull, readonly) NSArray *mediaFiles

Discussion

The media files for the creative.

See DAAST 3.2.1.3

Declared In

XALinear.h

  trackingEvents

Tracking events for the linear

@property (nonnull, readonly) NSArray *trackingEvents

Discussion

Tracking events for the linear

See DAAST 3.2.1.6

Declared In

XALinear.h

  adInteractions

The ad interactions

@property (nonnull, readonly) NSArray *adInteractions

Discussion

The ad interactions

See DAAST 3.2.1.6

Declared In

XALinear.h

  settings

The settings for the linear.

@property (nonatomic, readonly, nonnull) XASettings *settings

Discussion

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 *)adInteractions

Parameters

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 *)settings

Parameters

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 *)settings

Parameters

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