FlowerAdsManagerListener
This interface provides an entrypoint for receiving ad events during Flower SDK work.
Events
onAdBreakPrepare
The event dispatched when ad manifest is loaded for interstitial ads / VOD ads.
The following describes the parameters:
| Parameter | Type | Description |
|---|---|---|
| adInfos | NSMutableArray | List of loaded ad metadata. Each Item is AdInfo object. |
onPrepare
The event dispatched when ad is loaded for interstitial ads / VOD ads.
The following describes the parameters:
| Parameter | Type | Description |
|---|---|---|
| adDurationMs | Int32 | Total ad duration. |
onPlay
The event dispatched when ad playback starts.
onAdPlay
The event dispatched when each individual ad unit begins playback. Delivers metadata for the ad about to be played.
The following describes the parameters:
| Parameter | Type | Description |
|---|---|---|
| adInfo | AdInfo | Metadata of the ad that started playing. |
onAdUserAction
The event dispatched when the user interacts with the ad, such as clicking the learn-more button or pressing the skip button.
The following describes the parameters:
| Parameter | Type | Description |
|---|---|---|
| action | String | User action type.learn_more: User clicked the learn-more / click-through area.skip: User pressed the skip button. |
| adInfo | AdInfo | Metadata of the ad the action was performed on. |
onCompleted
The event dispatched when ad playback ends.
onError
The event dispatched when any error happens in the Flower SDK.
The following describes the parameters:
| Parameter | Type | Description |
|---|---|---|
| error | FlowerError? | Error object including message. |
onAdBreakSkipped
The event dispatched when an ad is skipped.
The following describes the parameters:
| Parameter | Type | Description |
|---|---|---|
| reason | Int32 | Code that describes why the ad is skipped. 0: Unknown 1: No Ad 2: Timeout 3: Error |