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>)delegate
Discussion
Invoked by the PSDK every time the resolver needs to be initialized due to a item or delegate change.
Declared In
PTOpportunityResolver.h
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.
- (void)process:(PTTimedMetadata *)timedMetadata
Discussion
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.h
shouldHandleOpportunity:
Opportunity Resolver returns YES/NO if it should handle the following metadata.
- (BOOL)shouldHandleOpportunity:(PTTimedMetadata *)timedMetadata
Discussion
Opportunity Resolver returns YES/NO if it should handle the following metadata.
Declared In
PTOpportunityResolver.h
timeout:
Invoked if the PSDK decides that the PTOpportunityResolver is taking too much time to answer back for this timed metadata.
- (void)timeout:(PTTimedMetadata *)timedMetadata
Discussion
Invoked if the PSDK decides that the PTOpportunityResolver is taking too much time to answer back for this timed metadata.
Declared In
PTOpportunityResolver.h