optOutTracking method

void optOutTracking([
  1. bool deleteUser = false
])

Stops the SDK function.

The SDK will be disabled and all local data will be cleared. If deleteUser is set to be true, SDK will try to upload an user delete data to TA server before stopping SDK functions.

Implementation

void optOutTracking([bool deleteUser = false]) {
  _getDynamicSuperProperties = null;
  _channel.invokeMethod('optOutTracking',
      <String, dynamic>{'deleteUser': deleteUser, 'appId': this._appId});
}