AmpIMAManager

open class AmpIMAManager: UIViewController, IMAAdsLoaderDelegate, IMAAdsManagerDelegate, IMAStreamManagerDelegate

Class in charge of managing the integration between the AMP SDK and the IMA SDK

  • The view used by the player, ads will be shown here as well.

    Declaration

    Swift

    open let videoView: UIView
  • The amp player associated with a specific IMA Manager.

    Declaration

    Swift

    open let ampPlayer: AmpPlayer
  • The current state of the video playback.

    Declaration

    Swift

    open var playbackState: PlaybackState
  • The current buferring state.

    Declaration

    Swift

    open var bufferingState: BufferingState
  • Initializes a new AmpIMAManager with the parameters provided.

    Declaration

    Swift

    public init(ampPlayer: AmpPlayer, videoView: UIView, _ coder: NSCoder? = nil)

    Return Value

    A configured instance of an AmpIMAManager.

  • Initializes a new AmpIMAManager to use DAI with the parameters provided.

    Declaration

    Swift

    public convenience init(ampPlayer: AmpPlayer, videoView: UIView, fallbackUrl: String? = nil, _ coder: NSCoder? = nil)

    Return Value

    A configured instance of an AmpIMAManager.

  • Resumes the current ad if any.

    Declaration

    Swift

    open func resume()
  • Pause the current ad if any.

    Declaration

    Swift

    open func pause()
  • Stops the entire module.

    Declaration

    Swift

    open func stop()