setDoNotSell static method

void setDoNotSell(
  1. bool isDoNotSell
)

Sets true to indicate that the user has opted out of interest-based advertising.

Or, sets false to indicate that the user has not opted out of interest-based advertising.

California Consumer Privacy Act (“CCPA”)

Implementation

static void setDoNotSell(bool isDoNotSell) {
  channel.invokeMethod('setDoNotSell', {
    'value': isDoNotSell,
  });
}