Versions Compared

Key

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

...

When your users perform a click action on the banner, deeplinks need to be handled and redirected by you. To do this, you can capture the URL using the RDInappButtonDelegate protocol. An example usage is as follows:

FirstWhen your users click on the banner, the deeplinks should be handled and directed by you. For this, you must call the delegate methodadd BannerDelegate to the relevant class.

Code Block
RelatedDigital.inappButtonDelegate = self                                 

Then, you can add the extension block and modify the following code according to your needs.

extension ViewController: RDInappButtonDelegate {
Code Block
languageswift
class ViewController: UIViewController, BannerDelegate

Then you can customize it by adding the following function.

Code Block
languageswift
func bannerItemClickListener(url: String) {
        print(url)
    }
}

Product Stat Notifier

The Product Stat Notifier action that you define in the RMC Panel works in Product View, Add to Cart and Add/Remove Favorites events. You must make sure that the product id is sent in these events.

...