Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
stylenone

Prerequisites

  1. Flutter Get Started

  2. Flutter Manual Implementation

Show the Ad

Code Block
languagedart
@override
  Widget build(BuildContext context) => Scaffold(
    appBar: ...,
    body: Column(children: [
      ...
      R89Banner(
          configurationId: ConfigBuilder.bannerTestR89ConfigId),
      ...
    ],),
  );
Info

Your configurationId will be provided to you during onboarding process by email, you can also retrieve them from the web interface after login.

They can be many or none depending on your requests, if you need one or more please request them to your account manager or technical account manager.

Lifecycle Events

You can subscribe to these events with the same method but passing a new object as a parameter. Details about this object can be found in the Reference.

Code Block
languagedart
@override
  Widget build(BuildContext context) => Scaffold(
    appBar: ...,
    body: Column(children: [
      ...
      R89Banner(
              configurationId: ConfigBuilder.bannerTestR89ConfigId,
              lifecycleCallbacks: BannerEventListener.callbacks(
                  onLoadedCallback: () {},
                  onImpressionCallback: () {},
                  onLayoutChangeCallback: (width, height) {},
                  onClickCallback: () {},
                  onOpenCallback: () {},
                  onCloseCallback: () {},
                  onFailedToLoadCallback: (error) {},)
            ),
      ...
    ],),
  );