ContextWrapper.CodeCacheDir Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the absolute path to the application specific cache directory on the filesystem designed for storing cached code.
public override Java.IO.File? CodeCacheDir { [Android.Runtime.Register("getCodeCacheDir", "()Ljava/io/File;", "GetGetCodeCacheDirHandler")] get; }
[<get: Android.Runtime.Register("getCodeCacheDir", "()Ljava/io/File;", "GetGetCodeCacheDirHandler")>]
member this.CodeCacheDir : Java.IO.File
Property Value
Returns the absolute path to the application specific cache directory on the filesystem designed for storing cached code. The system will delete any files stored in this location both when your specific application is upgraded, and when the entire platform is upgraded. This location is optimal for storing compiled or optimized code generated by your application at runtime. The returned path may change over time if the calling app is moved to an adopted storage device, so only relative paths should be persisted. Apps require no extra permissions to read or write to the returned path, since this path lives in their private storage. Returns File The path of the directory holding application code cache files.
- Attributes
Remarks
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.
Java documentation for android.content.ContextWrapper.getCodeCacheDir().