WebSettings.SetAppCacheMaxSize(Int64) Method

Definition

Caution

deprecated

Sets the maximum size for the Application Cache content.

[Android.Runtime.Register("setAppCacheMaxSize", "(J)V", "GetSetAppCacheMaxSize_JHandler")]
[System.Obsolete("deprecated")]
public abstract void SetAppCacheMaxSize (long appCacheMaxSize);
[<Android.Runtime.Register("setAppCacheMaxSize", "(J)V", "GetSetAppCacheMaxSize_JHandler")>]
[<System.Obsolete("deprecated")>]
abstract member SetAppCacheMaxSize : int64 -> unit

Parameters

appCacheMaxSize
Int64

the maximum size in bytes

Attributes

Remarks

Sets the maximum size for the Application Cache content. The passed size will be rounded to the nearest value that the database can support, so this should be viewed as a guide, not a hard limit. Setting the size to a value less than current database size does not cause the database to be trimmed. The default size is Long#MAX_VALUE. It is recommended to leave the maximum size set to the default value.

This member is deprecated. Quota is managed automatically; this method is a no-op.

Java documentation for android.webkit.WebSettings.setAppCacheMaxSize(long).

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