Java.Interop Namespace

Classes

Name Description
AndroidEventHelper
BaseExportAttribute
DoNotPackageAttribute
EventHelper
ExportAttribute

Used on a method to indicate Java code generator to export a Java method that becomes an Android Callable Wrapper (ACW).

ExportFieldAttribute

Used on a method to indicate Java code generator to export a Java field which will be initialized by the managed method.

ExportParameterAttribute

Within the method that is marked with T:Java.Introp.ExportAttribute , specify the actual Java type of the corresponding parameter or return value.

JavaArray<T>
JavaBooleanArray
JavaCharArray
JavaDoubleArray
JavaException

The Throwable class is the superclass of all errors and exceptions in the Java language.

JavaInt16Array
JavaInt32Array
JavaInt64Array
JavaInterfaceDefaultMethodAttribute
JavaLibraryReferenceAttribute
JavaObject

Class Object is the root of the class hierarchy.

JavaObjectArray<T>
JavaObjectExtensions
JavaPeerableExtensions

Extension methods on IJavaPeerable.

JavaPeerAliasesAttribute

Attribute applied to generated alias holder types. When multiple .NET types map to the same JNI name (e.g., JavaCollection and JavaCollection<T> both map to "java/util/Collection"), the base JNI name entry points to a plain holder class annotated with this attribute, which lists the indexed TypeMap keys for each alias type.

JavaPeerProxy

Base attribute class for generated proxy types that enable AOT-safe type mapping between Java and .NET types.

JavaPrimitiveArray<T>
JavaSByteArray
JavaSingleArray
JavaTypeParametersAttribute
JniAddNativeMethodRegistrationAttribute
JniArrayElements
JniBooleanArrayElements
JniCharArrayElements
JniConstructorSignatureAttribute
JniDoubleArrayElements
JniEnvironment
JniEnvironment.Arrays
JniEnvironment.Exceptions
JniEnvironment.InstanceFields
JniEnvironment.InstanceMethods
JniEnvironment.IO
JniEnvironment.Monitors
JniEnvironment.Object
JniEnvironment.References

JNI Reference-related functionality.

JniEnvironment.StaticFields
JniEnvironment.StaticMethods
JniEnvironment.Strings
JniEnvironment.Types
JniFieldInfo
JniInt16ArrayElements
JniInt32ArrayElements
JniInt64ArrayElements
JniMarshal
JniMemberSignatureAttribute
JniMethodInfo
JniMethodSignatureAttribute
JniPeerMembers
JniPeerMembers.JniInstanceFields
JniPeerMembers.JniInstanceMethods
JniPeerMembers.JniStaticFields
JniPeerMembers.JniStaticMethods
JniRuntime
JniRuntime.CreationOptions
JniRuntime.JniMarshalMemberBuilder
JniRuntime.JniObjectReferenceManager
JniRuntime.JniTypeManager

Manages bound Java types.

JniRuntime.JniValueManager
JniRuntime.ReflectionJniTypeManager
JniRuntime.ReflectionJniValueManager
JniSByteArrayElements
JniSingleArrayElements
JniSurfacedPeerInfo
JniType
JniTypeSignatureAttribute
JniValueMarshaler
JniValueMarshaler<T>
JniValueMarshalerAttribute
Runtime
TypeManager

Structs

Name Description
JniArgumentValue
JniMemberSignature
JniNativeMethod

Blittable JNI native method registration for use with raw function pointers. Layout matches JNI's JNINativeMethod struct exactly.

JniNativeMethodRegistration
JniNativeMethodRegistrationArguments
JniObjectReference
JniRuntime.ReplacementMethodInfo
JniTransition
JniTypeSignature
JniValueMarshalerState

Interfaces

Name Description
IAndroidCallableWrapper

Interface for proxy types that represent Android Callable Wrappers (ACW). ACW types are .NET types that have a corresponding generated Java class which calls back into .NET via JNI native methods.

IJavaPeerable

Support for using Java object instances.

IJniNameProviderAttribute

Enums

Name Description
ExportParameterKind

Within the method that is marked with T:Java.Introp.ExportAttribute , specify the actual Java type of the corresponding parameter or return value in T:Java.Introp.ExportParameterAttribute.

JniManagedPeerStates

Managed peer states.

JniObjectReferenceOptions
JniObjectReferenceType

Identifies the kind of a JNI object reference.

JniReleaseArrayElementsMode

Specifies how a copied JNI primitive-array elements buffer is released.

JniVersion

Identifies a version of the Java Native Interface.