Sdílet prostřednictvím


CookieManager.RemoveAllCookies(IValueCallback) Method

Definition

Removes all cookies.

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

Parameters

callback
IValueCallback

a callback which is executed when the cookies have been removed

Attributes

Remarks

Removes all cookies.

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 cookies 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.removeAllCookies(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