Android Guides | Samples

Android.OS.StatFs Class

Retrieve overall information about the space on a filesystem.

See Also: StatFs

Syntax

[Android.Runtime.Register("android/os/StatFs", DoNotGenerateAcw=true)]
public class StatFs : Object

Remarks

Retrieve overall information about the space on a filesystem. This is a wrapper for Unix statvfs().

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.OS.StatFs are listed below.

See Also: Object

Public Constructors

Construct a new StatFs for looking at the stats of the filesystem at path.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
AvailableBlocksInt32.
[read-only]
AvailableBlocksLongInt64. The number of blocks that are free on the file system and available to applications.
[read-only]
AvailableBytesInt64. The number of bytes that are free on the file system and available to applications.
[read-only]
BlockCountInt32.
[read-only]
BlockCountLongInt64. The total number of blocks on the file system.
[read-only]
BlockSizeInt32.
[read-only]
BlockSizeLongInt64. The size, in bytes, of a block on the file system.
[read-only]
FreeBlocksInt32.
[read-only]
FreeBlocksLongInt64. The total number of blocks that are free on the file system, including reserved blocks (that are not available to normal applications).
[read-only]
FreeBytesInt64. The number of bytes that are free on the file system, including reserved blocks (that are not available to normal applications).
[read-only]
TotalBytesInt64. The total number of bytes supported by the file system.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Restat(String)
Perform a restat of the file system referenced by this object.