...
Show the Ad
Use the R89OutStream(configurationId:...,)
widget provided by the SDK to display a video ad.
Code Block | ||
---|---|---|
| ||
@override
Widget build(BuildContext context) => Scaffold(
appBar: ...,
body: Column(children: [
...
R89OutStream(
configurationId: ConfigBuilder.videoOutStreamTestR89ConfigId),
...
],),
); |
Info |
---|
Your 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 | ||
---|---|---|
| ||
@override
Widget build(BuildContext context) => Scaffold(
appBar: ...,
body: Column(children: [
...
R89Banner(
configurationId: ConfigBuilder.bannerTestR89ConfigId,
lifecycleCallbacks: BannerEventListener.callbacks(
onLoadedCallback: () {},
onImpressionCallback: () {},
onLayoutChangeCallback: (width, heigth) {},
onClickCallback: () {},
onOpenCallback: () {},
onCloseCallback: () {},
onFailedToLoadCallback: (error) {},)
),
...
],),
); |