Pauseroll
@objc(YMAPauseroll)
public protocol Pauseroll
This class is responsible for playing pauseroll ad breaks.
-
This object will be notified about the pauseroll playback events.
Declaration
Swift
var delegate: InstreamAdBreakDelegate? { get set } -
InstreamAdBreakassociated with this pauseroll.Declaration
Swift
var instreamAdBreak: InstreamAdBreak { get } -
Prepare pauseroll playback. Note that
prepareshould always be called beforeplaymethod.Declaration
Swift
func prepare(with adPlayer: InstreamAdPlayer)Parameters
adPlayerplayer to play pauseroll.
-
Start pauseroll playback. Note that you can call play only on a prepared pauseroll.
Declaration
Swift
func play(with adView: InstreamAdView)Parameters
adViewthe view in which pauseroll will be displayed.
-
Pause pauseroll playback.
Declaration
Swift
func pause() -
Resume paused pauseroll playback.
Declaration
Swift
func resume() -
Invalidate pauseroll playback. Call this method right before ad player is invalidated. To resume playback after invalidation you should prepare and start pauseroll again.
Declaration
Swift
func invalidate()