PTAdResolver Protocol Reference
Conforms to | NSObject |
Declared in | PTAdResolver.h |
Tasks
Ad Management
-
– initWithDelegate:mediaItem:
Initiate a PTAdResolver instance with a media player item
required method -
– resolveAds:
Initiates a call to request ads from the server.
required method -
– resolveAdsForAvails:
Initiates a call to request ads from the server for a group of ad avails.
required method -
– cancel
Cancels any calls to resolve ads.
required method
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