AdBreakPlacement.preroll constructor

AdBreakPlacement.preroll({
  1. required H5AdBreakDoneCallback? adBreakDone,
})

Convenience factory to create a preroll ad configuration.

The following parameters are available:

See: https://developers.google.com/ad-placement/apis#prerolls

Implementation

factory AdBreakPlacement.preroll({
  required H5AdBreakDoneCallback? adBreakDone,
}) {
  return AdBreakPlacement(
    type: BreakType.preroll,
    adBreakDone: adBreakDone,
  );
}