Share via


WebView.ClearCache(Boolean) Method

Definition

Clears the resource cache.

[Android.Runtime.Register("clearCache", "(Z)V", "GetClearCache_ZHandler")]
public virtual void ClearCache (bool includeDiskFiles);
[<Android.Runtime.Register("clearCache", "(Z)V", "GetClearCache_ZHandler")>]
abstract member ClearCache : bool -> unit
override this.ClearCache : bool -> unit

Parameters

includeDiskFiles
Boolean

if false, only the RAM cache is cleared

Attributes

Remarks

Clears the resource cache. Note that the cache is per-application, so this will clear the cache for all WebViews used.

Java documentation for android.webkit.WebView.clearCache(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