Runtime

public class Runtime extends Object

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

Public Method Summary

void
int
void
exit(int status)
long
void
gc()
static Runtime
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
boolean
void
runFinalization()
No-op on iOS, since it doesn't use garbage collection.
long
void
traceInstructions(boolean enable)
No-op on iOS.
void
traceMethodCalls(boolean enable)
No-op on iOS.

Inherited Method Summary

Public Methods

public void addShutdownHook (Thread hook)

Parameters
hook

public int availableProcessors ()

public void exit (int status)

Parameters
status

public long freeMemory ()

public void gc ()

public static Runtime getRuntime ()

public void halt (int status)

Parameters
status

public void load (String absolutePath)

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

Parameters
absolutePath

public void loadLibrary (String nickname)

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

Parameters
nickname

public long maxMemory ()

public boolean removeShutdownHook (Thread hook)

Parameters
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.

Parameters
enable

public void traceMethodCalls (boolean enable)

No-op on iOS.

Parameters
enable