AdBreakPlacement.preroll constructor
AdBreakPlacement.preroll({
- required H5AdBreakDoneCallback? adBreakDone,
Convenience factory to create a preroll ad configuration.
The following parameters are available:
adBreakDone
: Always called as the last step in anadBreak
, even if there was no ad shown. Takes as argument aplacementInfo
object. See AdBreakDonePlacementInfo, and: https://developers.google.com/ad-placement/apis/adbreak#adbreakdone_and_placementinfo
See: https://developers.google.com/ad-placement/apis#prerolls
Implementation
factory AdBreakPlacement.preroll({
required H5AdBreakDoneCallback? adBreakDone,
}) {
return AdBreakPlacement(
type: BreakType.preroll,
adBreakDone: adBreakDone,
);
}