Runtime - JRE Emulation | JRE Emulation
public class

Runtime

extends Object
java.lang.Object
   ↳ java.lang.Runtime

Class Overview

Simple iOS version of java.lang.Runtime. No code was shared, just its public API.

Summary

Public Methods
void addShutdownHook(Thread hook)
int availableProcessors()
void exit(int status)
long freeMemory()
void gc()
static Runtime getRuntime()
void halt(int status)
void load(String absolutePath)
No-op on iOS, since all code must be linked into app bundle.
void loadLibrary(String nickname)
No-op on iOS, since all code must be linked into app bundle.
long maxMemory()
boolean removeShutdownHook(Thread hook)
void runFinalization()
No-op on iOS, since it doesn't use garbage collection.
long totalMemory()
void traceInstructions(boolean enable)
No-op on iOS.
void traceMethodCalls(boolean enable)
No-op on iOS.
Inherited Methods
[Expand]
From class java.lang.Object

Public Methods

public void addShutdownHook (Thread hook)

public int availableProcessors ()

public void exit (int status)

public long freeMemory ()

public void gc ()

public static Runtime getRuntime ()

public void halt (int status)

public void load (String absolutePath)

No-op on iOS, since all code must be linked into app bundle.

public void loadLibrary (String nickname)

No-op on iOS, since all code must be linked into app bundle.

public long maxMemory ()

public boolean removeShutdownHook (Thread hook)

public void runFinalization ()

No-op on iOS, since it doesn't use garbage collection.

public long totalMemory ()

public void traceInstructions (boolean enable)

No-op on iOS.

public void traceMethodCalls (boolean enable)

No-op on iOS.