語言

StorageStats.DataBytes 屬性

定義

回傳所有資料的大小。

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

屬性值

值為非負數位元組數。

屬性

備註

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

若主要的外部/共享儲存裝置託管於此儲存裝置,則包含存放於 Context#getExternalFilesDir(String)、 Context#getExternalCacheDir()及 Context#getExternalMediaDirs()的檔案。

多使用者裝置上的資料會被隔離給每位使用者。

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

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

適用於