Versions Compared

Key

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

...

For creating a wrapper, you can follow this guide iOS Creating a wrapper, On this page, we present different ways to create the wrapper.

Show the Ad

The code snippet below demonstrates how to add get the adWrapper instance and display 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)
    }
    ...
}

...