Java.Lang.Runtime.MaxMemory Method

Returns the maximum amount of memory that may be used by the virtual machine, or Long.MAX_VALUE if there is no such limit.

Syntax

[Android.Runtime.Register("maxMemory", "()J", "GetMaxMemoryHandler")]
public virtual long MaxMemory ()

Returns

  • the maximum amount of memory that the VM will try to allocate, measured in bytes.

Remarks

Returns the maximum amount of memory that may be used by the virtual machine, or Long.MAX_VALUE if there is no such limit.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: API Level 1