CookieManager.RemoveSessionCookies(IValueCallback) Method

Definition

Removes all session cookies, which are cookies without an expiration date.

[Android.Runtime.Register("removeSessionCookies", "(Landroid/webkit/ValueCallback;)V", "GetRemoveSessionCookies_Landroid_webkit_ValueCallback_Handler")]
public abstract void RemoveSessionCookies (Android.Webkit.IValueCallback? callback);
[<Android.Runtime.Register("removeSessionCookies", "(Landroid/webkit/ValueCallback;)V", "GetRemoveSessionCookies_Landroid_webkit_ValueCallback_Handler")>]
abstract member RemoveSessionCookies : Android.Webkit.IValueCallback -> unit

Parameters

callback
IValueCallback

a callback which is executed when the session cookies have been removed

Attributes

Remarks

Removes all session cookies, which are cookies without an expiration date.

This method is asynchronous. If a ValueCallback is provided, ValueCallback#onReceiveValue(T) onReceiveValue() will be called on the current thread's android.os.Looper once the operation is complete. The value provided to the callback indicates whether any cookies were removed. You can pass null as the callback if you don't need to know when the operation completes or whether any cookie were removed, and in this case it is safe to call the method from a thread without a Looper.

Java documentation for android.webkit.CookieManager.removeSessionCookies(android.webkit.ValueCallback<java.lang.Boolean>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to