CookieManager.RemoveAllCookies(IValueCallback) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.