PTOpportunityResolver Protocol Reference
| Conforms to | NSObject |
| Declared in | PTOpportunityResolver.h |
Overview
PTOpportunityResolver protocol describes the methods that are required for a customized opportunity resolver.
Tasks
shouldHandleOpportunity
-
– shouldHandleOpportunity:Opportunity resolver returns YES/NO if it should handle the following metadata.
required method
configWithPlayerItem
-
– configWithPlayerItem:delegate:Invoked by the PSDK every time the resolver needs to be initialized due to a item or delegate change.
required method
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.
required method
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