Versions Compared

Key

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

...

Note

This appID is not the same as the Manifest App Id you used in previous steps

Register all UIViewController’s

Use R89SDK.shared.registerUIViewController() method and register each UIViewController instance in your app that represents a screen. This helps the R89SDK to track the user’s navigation and screen transitions in the app.

Code Block
languageswift
import UIKit
import R89SDK

class MainViewController: UIViewController {
    ...
    override func viewDidLoad() {
        super.viewDidLoad()
        ...
        R89SDK.shared.registerUIViewController(uiViewController: self)
    }
    ...
}

Tagged Wrappers

...

titleDetails for Tagged Wrapper

Tagged Wrappers

...

Tagged Wrappers

Tagged Wrappers are the container inside which the ads will show, they are normal UIView wrappers with the accessabilityLabel attribute set. You need to add as many as you can, remember that placing a tagged wrapper does not mean we need to use it.

Info

If the specified accessibilityLabel is detected in the UIView, an ad will be placed inside it based on the single tag configuration data.

Events

Events can trigger other formats, right now the single tag supports:

  • Transitions Transition events are detected by the single tag automatically after initialization. They happen when an activity or fragment a UIViewController is started from other activity or fragment/presented from another UIViewController.

  • Button Presses when a button is pressed, this works They are detected by adding the android:tag attribute to the button.

...