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 -
– cancelCancels any calls to resolve ads.
required method
Instance Methods
cancel
Cancels any calls to resolve ads.
- (void)cancelDiscussion
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.hinitWithDelegate:mediaItem:
Initiate a PTAdResolver instance with a media player item
- (id)initWithDelegate:(id<PTAdResolverDelegate>)delegate mediaItem:(PTMediaPlayerItem *)mediaItemDiscussion
Initiate a PTAdResolver instance with a media player item
Declared In
PTAdResolver.hresolveAds:
Initiates a call to request ads from the server.
- (BOOL)resolveAds:(PTAdAvailInfo *)availInfoDiscussion
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.hresolveAdsForAvails:
Initiates a call to request ads from the server for a group of ad avails.
- (BOOL)resolveAdsForAvails:(NSArray *)availInfoListDiscussion
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