Android Guides | Samples

Android.App.ActivityManager.MemoryInfo Class

Information you can retrieve about the available memory through ActivityManager.GetMemoryInfo(ActivityManager+MemoryInfo).

See Also: ActivityManager+MemoryInfo

Syntax

[Android.Runtime.Register("android/app/ActivityManager$MemoryInfo", DoNotGenerateAcw=true)]
public class ActivityManager.MemoryInfo : Object, IParcelable, IDisposable

Remarks

Information you can retrieve about the available memory through ActivityManager.GetMemoryInfo(ActivityManager+MemoryInfo).

[Android Documentation]

Requirements

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

The members of Android.App.ActivityManager.MemoryInfo are listed below.

See Also: Object

Public Constructors

Protected Constructors

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

Public Properties

AvailMemInt64. The available memory on the system.
[read-only]
static
CreatorIParcelableCreator.
LowMemoryBoolean. Set to true if the system considers itself to currently be in a low memory situation.
ThresholdInt64. The threshold of ActivityManager+MemoryInfo.AvailMem at which we consider memory to be low and start killing background services and other non-extraneous processes.
TotalMemInt64. The total memory accessible by the kernel.

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

DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
ReadFromParcel(Parcel)
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.