PTOpportunityResolver Class Reference
| Inherits from | NSObject |
| Conforms to | PTOpportunityResolver |
| Declared in | PTOpportunityResolver.h |
Overview
PTOpportunityResolver class should be used to extend the functionality of a basic opportunity resolver. Custom opportunity resolver should override the following methods: - (BOOL)shouldHandleOpportunity:(PTTimedMetadata )timedMetadata - (void)process:(PTTimedMetadata )timedMetadata
Tasks
shouldHandleOpportunity
-
– shouldHandleOpportunity:Opportunity Resolver returns YES/NO if it should handle the following metadata.
configWithPlayerItem
-
– configWithPlayerItem:delegate:Invoked by the PSDK every time the resolver needs to be initialized due to a item or delegate change.
process
-
– process:Invoked everytime that the player requires the opportunity resolver to process an oportunity. Only if the opportunity resolver returned YES to handle a timed metadata in shouldHandleOpportunity.
timeout
-
– timeout:Invoked if the PSDK decides that the PTOpportunityResolver is taking too much time to answer back for this timed metadata.
Instance Methods
configWithPlayerItem:delegate:
Invoked by the PSDK every time the resolver needs to be initialized due to a item or delegate change.
- (void)configWithPlayerItem:(PTMediaPlayerItem *)item delegate:(id<PTOpportunityResolverDelegate>)delegateDiscussion
Invoked by the PSDK every time the resolver needs to be initialized due to a item or delegate change.
Declared In
PTOpportunityResolver.hprocess:
Invoked everytime that the player requires the opportunity resolver to process an oportunity. Only if the opportunity resolver returned YES to handle a timed metadata in shouldHandleOpportunity.
- (void)process:(PTTimedMetadata *)timedMetadataDiscussion
Invoked everytime that the player requires the opportunity resolver to process an oportunity. Only if the opportunity resolver returned YES to handle a timed metadata in shouldHandleOpportunity.
Declared In
PTOpportunityResolver.hshouldHandleOpportunity:
Opportunity Resolver returns YES/NO if it should handle the following metadata.
- (BOOL)shouldHandleOpportunity:(PTTimedMetadata *)timedMetadataDiscussion
Opportunity Resolver returns YES/NO if it should handle the following metadata.
Declared In
PTOpportunityResolver.htimeout:
Invoked if the PSDK decides that the PTOpportunityResolver is taking too much time to answer back for this timed metadata.
- (void)timeout:(PTTimedMetadata *)timedMetadataDiscussion
Invoked if the PSDK decides that the PTOpportunityResolver is taking too much time to answer back for this timed metadata.
Declared In
PTOpportunityResolver.h