See Also: CookieSyncManager
[System.Obsolete("This class is obsoleted in this android platform")]
public sealed class CookieSyncManager : WebSyncManager
The CookieSyncManager is used to synchronize the browser cookie store between RAM and permanent storage. To get the best performance, browser cookies are saved in RAM. A separate thread saves the cookies between, driven by a timer.
To use the CookieSyncManager, the host application has to call the following when the application starts:
To set up for sync, the host application has to call
in Activity.onResume(), and call
To get instant sync instead of waiting for the timer to trigger, the host can call
The sync interval is 5 minutes, so you will want to force syncs manually anyway, for instance in WebViewClient.OnPageFinished(WebView,String). Note that even sync() happens asynchronously, so don't do it just as your activity is shutting down.
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1
The members of Android.Webkit.CookieSyncManager are listed below.
See Also: WebSyncManager
|ThresholdClass||IntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.|
|ThresholdType||Type. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.|
Create a singleton CookieSyncManager within a context
resetSync() resets sync manager's timer.
Starts executing the active part of the class' code.
startSync() requests sync manager to start sync.
stopSync() requests sync manager to stop sync. remove any SYNC_MESSAGE in the queue to break the sync loop
sync() forces sync manager to sync now