Press on the image to return to the main documentation page.
CookieManager
Written by Martin Pearman
CookieManager is a simple wrapper for the Android CookieManager and CookieSyncManager Classes. It enables you to manages the cookies used by your application's WebView instances.
Creates an instance of the CookieSyncManager. The CookieSyncManager is used to synchronise 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 with a 5 minute interval.
ResetSync
Resets the CookieSyncManager timer.
StartSync
Requests the CookieSyncManager to start synchronisation. Typically called in Activity_Resume.
StopSync
Requests the CookieSyncManager to stop synchronisation. Typically called in Activity_Pause.
Sync
Forces the CookieSyncManager to synchronise now. This method is asynchronous, there is no guarantee it will synchronise immediately.
Top