JavaSystem JavaSystem Class

Definition

Provides access to system-related information and resources including standard input and output.

[Android.Runtime.Register("java/lang/System", ApiSince=1, DoNotGenerateAcw=true)]
public sealed class JavaSystem : Java.Lang.Object
type JavaSystem = class
    inherit Object
Inheritance
JavaSystemJavaSystem
Attributes

Remarks

Android platform documentation

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.

Properties

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
Err Err

Default error output stream.

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
In In

Default input stream.

JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
Out Out

Default output stream.

PeerReference PeerReference Inherited from Object
Properties Properties

Returns the system properties.

SecurityManager SecurityManager

Returns null.

ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

Arraycopy(Object, Int32, Object, Int32, Int32) Arraycopy(Object, Int32, Object, Int32, Int32)

Copies length elements from the array src, starting at offset srcPos, into the array dst, starting at offset dstPos.

ClearProperty(String) ClearProperty(String)

Removes a specific system property.

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
Console() Console()

Returns the Console associated with this VM, or null.

CurrentTimeMillis() CurrentTimeMillis()

Returns the current time in milliseconds since January 1, 1970 00:00:00.

Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
Exit(Int32) Exit(Int32)

Causes the VM to stop running and the program to exit with the given exit status.

Gc() Gc()

Indicates to the VM that it would be a good time to run the garbage collector.

Getenv() Getenv()

Returns an unmodifiable map of all environment variables to their values.

Getenv(String) Getenv(String)

Returns the value of the environment variable with the given name, or null if no such variable exists.

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetProperty(String) GetProperty(String)

Returns the value of a particular system property or null if no such property exists.

GetProperty(String, String) GetProperty(String, String)

Returns the value of a particular system property.

IdentityHashCode(Object) IdentityHashCode(Object)

Returns an integer hash code for the parameter.

InheritedChannel() InheritedChannel()

Returns the inherited channel from the creator of the current virtual machine.

JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
LineSeparator() LineSeparator()

Returns the system's line separator.

Load(String) Load(String)

See Load(String).

LoadAsync(String) LoadAsync(String)
LoadLibrary(String) LoadLibrary(String)

See LoadLibrary(String).

LoadLibraryAsync(String) LoadLibraryAsync(String)
MapLibraryName(String) MapLibraryName(String)

Returns the platform specific file name format for the shared library named by the argument.

NanoTime() NanoTime()

Returns the current timestamp of the most precise timer available on the local system, in nanoseconds.

Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
RunFinalization() RunFinalization()

Provides a hint to the VM that it would be useful to attempt to perform any outstanding object finalization.

RunFinalizersOnExit(Boolean) RunFinalizersOnExit(Boolean)

Ensures that, when the VM is about to exit, all objects are finalized.

SetErr(PrintStream) SetErr(PrintStream)

Sets the standard error output stream to the given user defined output stream.

SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetIn(Stream) SetIn(Stream)

Sets the standard input stream to the given user defined input stream.

SetOut(PrintStream) SetOut(PrintStream)

Sets the standard output stream to the given user defined output stream.

SetProperty(String, String) SetProperty(String, String)

Sets the value of a particular system property.

ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Explicit Interface Implementations

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to