Packagecom.adobe.mediacore.timeline.advertising
Classpublic class CustomAdResolver
InheritanceCustomAdResolver Inheritance ContentResolver Inheritance Object



Public Properties
 PropertyDefined By
 Inheritedclient : ContentResolverClient
[read-only] Returns the client associated with this content resolver.
ContentResolver
 Inheritedcontext : MediaPlayerContext
[read-only] Returns the context associated with this content resolver.
ContentResolver
Public Methods
 MethodDefined By
  
Default constructor.
CustomAdResolver
 Inherited
canResolve(opportunity:Opportunity):Boolean
Checks if the specified opportunity can be resolved by the current resolver.
ContentResolver
 Inherited
Callback invoked by the PSDK every time the content resolver needs to be configured or re-configured due to an item change.
ContentResolver
  
[static] Returns the next Ad identifier.
CustomAdResolver
 Inherited
resolve(opportunity:Opportunity):void
Resolves the opportunity according to the provided information.
ContentResolver
Protected Methods
 MethodDefined By
  
doCanResolve(opportunity:Opportunity):Boolean
[override] The actual implementation must override this method.
CustomAdResolver
  
[override] Actual content resolvers should override this method if they need to do some configuration based on the specified media player item.
CustomAdResolver
  
doResolve(opportunity:Opportunity):void
[override] The actual implementation must override this method.
CustomAdResolver
Constructor Detail
CustomAdResolver()Constructor
public function CustomAdResolver()

Default constructor.

Method Detail
doCanResolve()method
override protected function doCanResolve(opportunity:Opportunity):Boolean

The actual implementation must override this method.

Parameters

opportunity:Opportunity — the opportunity to be checked.

Returns
Boolean — true if the opportunity can be resolved by this resolver, false otherwise
doConfigure()method 
override protected function doConfigure(item:MediaPlayerItem):void

Actual content resolvers should override this method if they need to do some configuration based on the specified media player item.

Parameters

item:MediaPlayerItem — Media player item which is associated with this content resolver.

doResolve()method 
override protected function doResolve(opportunity:Opportunity):void

The actual implementation must override this method.

Parameters

opportunity:Opportunity — information needed in resolving process.

getNextTimelineId()method 
public static function getNextTimelineId():int

Returns the next Ad identifier.

Returns
int — a valid identifier