Android Guides | Samples

Android.Runtime.IJavaObject

Provides an interface to expose Android instance handles.

See Also: IJavaObject

Syntax

public interface IJavaObject : IDisposable

Remarks

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.

Requirements

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

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

Public Properties

[read-only]
HandleIntPtr. Gets the JNI value of the underlying Android object.