Android Guides | Samples


Provides an interface to expose Android instance handles.

See Also: IJavaObject


public interface IJavaObject : IDisposable


NEVER IMPLEMENT THIS INTERFACE YOURSELF. Implement this interface by inheriting from Object. See the Android Callable Wrappers documentation for more information.

The IJavaObject interface acts as a "bridge" between the Android and Mono virtual machines. The IJavaObject.Handle must be a Java Native Interface (JNI) jobject value referencing a valid object allocated within the Java VM. Such an object could be allocated via JNIEnv.NewObject, but it is preferrable to subclass Object to implement the IJavaObject.Handle property.


Namespace: Android.Runtime
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions:

The members of Android.Runtime.IJavaObject are listed below.

Public Properties

HandleIntPtr. Gets the JNI value of the underlying Android object.