Skip to main content

FlowerAdsManagerListener

This interface provides entrypoint to 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:

ParameterTypeDescription
adInfosAdInfo[]List of loaded ad metadata.

onPrepare

The event dispatched when ad is loaded for interstitial ads / VOD ads.

The following describes the parameters:

ParameterTypeDescription
adDurationMsnumberTotal ad duration.

onPlay

The event dispatched when ad playback starts.

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:

ParameterTypeDescription
errorFlowerError?Error object including message.

onAdSkipped

The event dispatched when an ad is skipped.

The following describes the parameters:

ParameterTypeDescription
reasonnumberCode that describes why the ad is skipped.
0: Unknown
1: No Ad
2: Timeout
3: Error
4: User skipped