Conforms to NSObject
Declared in PTAdResolver.h

Overview

PTAdResolver protocol provides calls to request ads from an ad server

Tasks

Ad Management

Instance Methods

cancel

Cancels any calls to resolve ads.

- (void)cancel

Discussion

Cancels any calls to resolve ads.

The PTAdResolver instance is expected cancel all pending ad requests and not invoke any delegate methods.

Declared In

PTAdResolver.h

initWithDelegate:mediaItem:

Initiate a PTAdResolver instance with a media player item

- (id)initWithDelegate:(id<PTAdResolverDelegate>)delegate mediaItem:(PTMediaPlayerItem *)mediaItem

Discussion

Initiate a PTAdResolver instance with a media player item

Declared In

PTAdResolver.h

resolveAds:

Initiates a call to request ads from the server.

- (BOOL)resolveAds:(PTAdAvailInfo *)availInfo

Discussion

Initiates a call to request ads from the server.

PTAdAvailInfo instance provides information for the ad call such as the request type (pre, mid or post), duration of the avail, time of the avail, and any runtime metadata.

Returns YES if the request is handled by this instance. NO otherwise.

Declared In

PTAdResolver.h

resolveAdsForAvails:

Initiates a call to request ads from the server for a group of ad avails.

- (BOOL)resolveAdsForAvails:(NSArray *)availInfoList

Discussion

Initiates a call to request ads from the server for a group of ad avails.

PTAdAvailInfo instance provides information for the ad call such as the request type (pre, mid or post), duration of the avail, time of the avail, and any runtime metadata.

Returns YES if the request is handled by this instance. NO otherwise.

Declared In

PTAdResolver.h