Runtime.MaxMemory Method
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.
Returns the maximum amount of memory that the Java virtual machine will attempt to use.
[Android.Runtime.Register("maxMemory", "()J", "GetMaxMemoryHandler")]
public virtual long MaxMemory ();
[<Android.Runtime.Register("maxMemory", "()J", "GetMaxMemoryHandler")>]
abstract member MaxMemory : unit -> int64
override this.MaxMemory : unit -> int64
Returns
the maximum amount of memory that the virtual machine will attempt to use, measured in bytes
- Attributes
Remarks
Returns the maximum amount of memory that the Java virtual machine will attempt to use. If there is no inherent limit then the value java.lang.Long#MAX_VALUE
will be returned.
Added in 1.4.
Java documentation for java.lang.Runtime.maxMemory()
.
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.