SVSAd Manager
open class SVSAdManager : SVSAdPlayerControls.AdPlayerControlsListener, SVSAdBreakManagerListener, SCSViewabilityManagerListener, SVSRemoteLoggerManagerDataSource, SVSAdPlaybackEvent.OnAdPlaybackEventListener
The SVSAdManager is the class responsible for loading ads and displaying them into the ad player. This class is instantiated with a SVSAdPlacement, a set of SVSAdRule, a SVSAdPlayerConfiguration object and is started with an Object implementing the SVSContentPlayerPlugin interface that makes the connection with the content player
Constructors
Link copied to clipboard
constructor(@NonNull context: Context, @NonNull placement: SVSAdPlacement, @Nullable adRules: Array<SVSAdRule>, @Nullable adPlayerConfiguration: SVSAdPlayerConfiguration, @Nullable contentData: SVSContentData)
Main constructor
Types
Link copied to clipboard
interface AdBreakEventListener
Interface for Objects that will monitor SVSAdManager ad break events
Link copied to clipboard
interface AdManagerListener
Interface for Objects that will monitor SVSAdManager main events and actions
Link copied to clipboard
interface UIInteractionListener
Interface for Objects that will respond to interactions with the ad player controls (like enter fullscreen/ exit fullscreen requests for now)
Properties
Functions
Link copied to clipboard
Add a AdBreakEventListener to this SVSAdManager
Link copied to clipboard
Add a AdManagerListener to this SVSAdManager
Link copied to clipboard
Adds a UIInteractionListener to this SVSAdManager.
Link copied to clipboard
Cancel any pending ad loading process
Link copied to clipboard
Manually notifies the SVSAdManager instance that the content has reached its end (in case it can not be properly detected internally)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Releases resources allocated by this SVSAdManager.
Link copied to clipboard
Tells the ad manager that your content player entered / exited fullscreen mode.
Link copied to clipboard
Notifies this SVSAdManager that the hosting Activity's onPause() method was called
Link copied to clipboard
Notifies this SVSAdManager that the hosting Activity's onResume() method was called
Link copied to clipboard
Add a AdBreakEventListener to this SVSAdManager
Link copied to clipboard
Add a AdManagerListener to this SVSAdManager
Link copied to clipboard
Removes a UIInteractionListener from this SVSAdManager.
Link copied to clipboard
Will resume the content monitoring.
Link copied to clipboard
Sets the SVSMediaURIProvider object used to determine the URI of the actual media to play for a given VAST media url (for media caching for instance)
Link copied to clipboard
Starts the ad playback process on the content player represented by the SVSContentPlayerPlugin object
Link copied to clipboard
Will start the waiting ad break, if any.