Partager via


WebSettings.SetAppCachePath(String) Method

Definition

Sets the path to the Application Caches files.

[Android.Runtime.Register("setAppCachePath", "(Ljava/lang/String;)V", "GetSetAppCachePath_Ljava_lang_String_Handler")]
public abstract void SetAppCachePath (string? appCachePath);
[<Android.Runtime.Register("setAppCachePath", "(Ljava/lang/String;)V", "GetSetAppCachePath_Ljava_lang_String_Handler")>]
abstract member SetAppCachePath : string -> unit

Parameters

appCachePath
String

a String path to the directory containing Application Caches files.

Attributes

Remarks

Sets the path to the Application Caches files. In order for the Application Caches API to be enabled, this method must be called with a path to which the application can write. This method should only be called once: repeated calls are ignored.

This member is deprecated. The Application Cache API is deprecated and this method will become a no-op on all Android versions once support is removed in Chromium. Consider using Service Workers instead. See https://web.dev/appcache-removal/ for more information.

Java documentation for android.webkit.WebSettings.setAppCachePath(java.lang.String).

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

See also