optOutAndWipeData method

Future<void> optOutAndWipeData()

Opt-out from Batch SDK and wipe data. An installation data wipe command will be sent to Batch's servers if the user is connected to the internet.

See Batch.optOut() for more info.

Asking to opt out and wipe data while the SDK is already opted out from won't do anything: please temporarily opt-in so that the data wipe request can be sent to Batch's servers.

Implementation

Future<void> optOutAndWipeData() async {
  await _channel.invokeMethod('optOutAndWipeData');
}