Versions Compared

Key

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

...

Code Block
languageswift
import UIKit
import R89SDK

class MainViewController: UIViewController {
    
    @IBOutlet var topWrapperUIView:UIView!
    @IBOutlet var bottomWrapperUIView:UIView!
    ...
    override func viewDidLoad() {
        super.viewDidLoad()
        ...
        // Setting tags programmatically 
        topWrapperUIView.accessibilityLabel = "top_wrapper_tag"
        bottomWrapperUIView.accessibilityLabel = "bottom_wrapper_tag"
        // This line is necessary to inform R89SDK about app navigation.
        R89SDK.shared.registerLifecycleregisterUIViewController(uiViewController: self)
    }
    ...
}

...

Limitations

  • We can fill either only one wrapper all of the wrappers with a tag or all of themjust the first one we find with that tag: if you want to exclude some differentiate any wrappers you need to put assign a different tag to those views, that is grouping. E.g.: if you want us to fill a wrapper at the bottom of the screen that has the tag ads_wrapper we can fill that. However, if you have multiple wrappers with the same tag, and you want to fill all of them and exclude some others while having the same tag, it’s not possible. We encourage you to ask for advice from to our technical support on how to group wrappers.

  • To enable tag lookup in the uiViewController’s view hierarchy and screen navigation tracking you will need to call R89SDK.shared.registerLifecycle(uiViewController: self) to register viewController in the SDK in the UIViewController.viewDidLoad() method to explicitly notify the R89SDK about screen load event. Keep in mind to call it AFTER tag configurations.

    Code Block
    languageswift
    import UIKit
    import R89SDK
    
    class MyViewControllerMainViewController: UIViewController {
        
        @IBOutlet var topWrapperUIView:UIView!
        @IBOutlet var bottomWrapperUIView:UIView!
        ...
        override func viewDidLoad() {
            super.viewDidLoad()
            ...
            //Tag configurations Setting tags programmatically 
            topWrapperUIView.accessibilityLabel = "top_wrapper_tag"
            bottomWrapperUIView.accessibilityLabel = "bottom_wrapper_tag"
            //Registration of UIViewController This line is necessary to inform R89SDK about app navigation.
            R89SDK.shared.registerLifecycleregisterUIViewController(uiViewController: self)
        }
        ...
    }

    This limitation might be removed in forthcoming versions and the technic qill