StorageStats.DataBytes 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.
Return the size of all data.
public long DataBytes { [Android.Runtime.Register("getDataBytes", "()J", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getDataBytes", "()J", "", ApiSince=26)>]
member this.DataBytes : int64
Property Value
- Attributes
Remarks
Return the size of all data. This includes files stored under Context#getDataDir()
, Context#getCacheDir()
, Context#getCodeCacheDir()
.
If the primary external/shared storage is hosted on this storage device, then this includes files stored under Context#getExternalFilesDir(String)
, Context#getExternalCacheDir()
, and Context#getExternalMediaDirs()
.
Data is isolated for each user on a multiuser device.
Java documentation for android.app.usage.StorageStats.getDataBytes()
.
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.