Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This method below will add an outstream ad to the provided wrapper.

Code Block
languageswift
import UIKit
import R89SDK

class ViewController: UIViewController {
    ...
    @IBOutlet weak var adContainer: UIView!
    ...
    override func viewDidLoad() {
        super.viewDidLoad()
        ...
        let outstreamConfigId = ConfigBuilder.companion.VIDEO_OUTSTREAM_TEST_R89_CONFIG_ID
        RefineryAdFactory.shared.createVideoOutstreamBanner(configurationID: outstreamConfigId, 
                                                            wrapper: wrapper, 
                                                            lifecycleCallbacks: nil)
    }
    ...
}

...