Inherits from NSObject
Declared in PTPlacementOpportunity.h

Overview

PTPlacementOpportunity class represents a point in time of the stream where there is a content placement opportunity. A PTOpportunityResolver creates the PTPlacementOpportunity when required based on the provided PTTimedMetadata.

Tasks

Advertisement Opportunity

Blackout Opportunity

Empty Opportunity

Class Methods

advertisementOpportunityWithTimedMetadata:

Returns a PTPlacementOpportunity of type PTOpportunityTypeAdvertisement

+ (PTPlacementOpportunity *)advertisementOpportunityWithTimedMetadata:(PTTimedMetadata *)timedMetadata

Discussion

Returns a PTPlacementOpportunity of type PTOpportunityTypeAdvertisement

Declared In

PTPlacementOpportunity.h

blackoutOpportunityWithTimedMetadata:

Returns a PTPlacementOpportunity of type PTOpportunityTypeBlackout

+ (PTPlacementOpportunity *)blackoutOpportunityWithTimedMetadata:(PTTimedMetadata *)timedMetadata

Discussion

Returns a PTPlacementOpportunity of type PTOpportunityTypeBlackout

Declared In

PTPlacementOpportunity.h

emptyOpportunityWithTimedMetadata:

Returns a PTPlacementOpportunity of type PTOpportunityTypeNone

+ (PTPlacementOpportunity *)emptyOpportunityWithTimedMetadata:(PTTimedMetadata *)timedMetadata

Discussion

Returns a PTPlacementOpportunity of type PTOpportunityTypeNone

Declared In

PTPlacementOpportunity.h