clearQuickAccessProfile method

  1. @override
Future<void> clearQuickAccessProfile()
override

Forgets native quick-access authorization without stopping an active VPN.

A later explicit connection can authorize a new profile. Unsupported native storage reports UnsupportedError in the shared channel adapter.

Implementation

@override
Future<void> clearQuickAccessProfile() async {
  if ((await getCapabilities()).optionsVersion < 1) {
    throw UnsupportedError(
        'The native backend has no quick-access profile storage.');
  }
  await methodChannel.invokeMethod<void>('clearQuickAccessProfile');
}