removeSessionCookies method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'CookieManager.removeSessionCookies', apiUrl: 'https://developer.android.com/reference/android/webkit/CookieManager#removeSessionCookies(android.webkit.ValueCallback%3Cjava.lang.Boolean%3E)')])
Removes all session cookies, which are cookies without an expiration date.
The return value indicates whether any cookies were removed.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - CookieManager.removeSessionCookies)
Use the PlatformCookieManager.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'CookieManager.removeSessionCookies',
apiUrl:
'https://developer.android.com/reference/android/webkit/CookieManager#removeSessionCookies(android.webkit.ValueCallback%3Cjava.lang.Boolean%3E)',
),
],
)
Future<bool> removeSessionCookies() {
throw UnimplementedError(
'removeSessionCookies is not implemented on the current platform',
);
}