語言

StorageStats.CacheBytes 屬性

定義

回傳所有快取資料的大小。

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

屬性值

值為非負數位元組數。

屬性

備註

回傳所有快取資料的大小。 這包括儲存在 Context#getCacheDir() 和 Context#getCodeCacheDir()下的檔案。

如果主要的外部/共享儲存裝置是託管在這台儲存裝置上,那麼這也包括存放在 Context#getExternalCacheDir()的檔案。

快取資料會為多使用者裝置上的每個使用者隔離。

Java 文件 android.app.usage.StorageStats.getCacheBytes()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於