Language

JniType Class

Definition

public sealed class JniType : IDisposable
type JniType = class
    interface IDisposable
Inheritance
JniType
Implements

Remarks

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.

Constructors

Name Description
JniType(JniObjectReference, JniObjectReferenceOptions)
JniType(ReadOnlySpan<Byte>)

Creates a JniType from a null-terminated UTF-8 class name span. Use with "java/lang/Object"u8 literals to avoid string marshalling overhead.

JniType(String)

Properties

Name Description
Name
PeerReference

Methods

Name Description
AllocObject()
DefineClass(String, JniObjectReference, Byte[])
Dispose()
GetCachedConstructor(JniMethodInfo, ReadOnlySpan<Byte>)
GetCachedConstructor(JniMethodInfo, String)
GetCachedInstanceField(JniFieldInfo, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
GetCachedInstanceField(JniFieldInfo, String, String)
GetCachedInstanceMethod(JniMethodInfo, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
GetCachedInstanceMethod(JniMethodInfo, String, String)
GetCachedJniType(JniType, ReadOnlySpan<Byte>)
GetCachedJniType(JniType, String)
GetCachedStaticField(JniFieldInfo, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
GetCachedStaticField(JniFieldInfo, String, String)
GetCachedStaticMethod(JniMethodInfo, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
GetCachedStaticMethod(JniMethodInfo, String, String)
GetConstructor(ReadOnlySpan<Byte>)
GetConstructor(String)
GetInstanceField(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
GetInstanceField(String, String)
GetInstanceMethod(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
GetInstanceMethod(String, String)
GetStaticField(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
GetStaticField(String, String)
GetStaticMethod(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
GetStaticMethod(String, String)
GetSuperclass()
IsAssignableFrom(JniType)
IsInstanceOfType(JniObjectReference)
NewObject(JniMethodInfo, JniArgumentValue*)
RegisterNativeMethods(JniNativeMethodRegistration[])
RegisterWithRuntime()
ToString()
TryParse(String, JniType)
UnregisterNativeMethods()

Applies to