Condividi tramite


StorageStats.CacheBytes Property

Definition

Return the size of all cached data.

public long CacheBytes { [Android.Runtime.Register("getCacheBytes", "()J", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getCacheBytes", "()J", "", ApiSince=26)>]
member this.CacheBytes : int64

Property Value

Attributes

Remarks

Return the size of all cached data. This includes files stored under Context#getCacheDir() and Context#getCodeCacheDir().

If the primary external/shared storage is hosted on this storage device, then this includes files stored under Context#getExternalCacheDir().

Cached data is isolated for each user on a multiuser device.

Java documentation for android.app.usage.StorageStats.getCacheBytes().

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