adChoicesPlacement property

int adChoicesPlacement

The AdChoices overlay is set to the top right corner by default. Apps can change which corner this overlay is rendered in by setting this property to one of the following:

  1. ADCHOICES_TOP_LEFT
  2. ADCHOICES_TOP_RIGHT default
  3. ADCHOICES_BOTTOM_RIGHT
  4. ADCHOICES_BOTTOM_LEFT

Implementation

int get adChoicesPlacement => _adChoichesPlacement;
void adChoicesPlacement=(int value)

Implementation

set adChoicesPlacement(int value) {
  assert(
    [
      ADCHOICES_TOP_LEFT,
      ADCHOICES_TOP_RIGHT,
      ADCHOICES_BOTTOM_RIGHT,
      ADCHOICES_BOTTOM_LEFT,
    ].contains(value),
    'The entered value is not accepted. Accepted values: 0, 1, 2, 3',
  );
  _adChoichesPlacement = value;
}