返回介绍

AndroidJNI 安卓JNI

发布于 2019-12-18 15:37:04 字数 34549 浏览 958 评论 0 收藏 0

Description 描述

'Raw' JNI interface to Android Dalvik (Java) VM from Mono (CS/JS).

从Mono (CS/JS),原始JNI接口到安卓Dalvik (Java)虚拟机。

Static Functions 静态函数

AllocObjectAllocates a new Java object without invoking any of the constructors for the object.
分配新 Java 对象而不调用该对象的任何构造函数,返回该对象的引用。
AttachCurrentThreadAttaches the current thread to a Java (Dalvik) VM.
附加当前线程到一个Java(Dalvik)虚拟机。
CallBooleanMethodCalls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.
调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。
CallByteMethodCalls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.
调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。
CallCharMethodCalls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.
调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。
CallDoubleMethodCalls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.
调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。
CallFloatMethodCalls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.
调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。
CallIntMethodCalls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.
调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。
CallLongMethodCalls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.
调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。
CallObjectMethodCalls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.
调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。
CallShortMethodCalls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.
调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。
CallStaticBooleanMethodInvokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.
在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。
CallStaticByteMethodInvokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.
在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。
CallStaticCharMethodInvokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.
在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。
CallStaticDoubleMethodInvokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.
在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。
CallStaticFloatMethodInvokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.
在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。
CallStaticIntMethodInvokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.
在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。
CallStaticLongMethodInvokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.
在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。
CallStaticObjectMethodInvokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.
在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。
CallStaticShortMethodInvokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.
在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。
CallStaticStringMethodInvokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.
在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。
CallStaticVoidMethodInvokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.
在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。
CallStringMethodCalls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.
在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。
CallVoidMethodCalls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.
调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。
DeleteGlobalRefDeletes the global reference pointed to by obj.
删除 obj 所指向的全局引用。
DeleteLocalRefDeletes the local reference pointed to by obj.
删除 obj 所指向的局部引用。
DetachCurrentThreadDetaches the current thread from a Java (Dalvik) VM.
从一个Java(Dalvik)虚拟机,分类当前线程。
EnsureLocalCapacityEnsures that at least a given number of local references can be created in the current thread.
在当前线程确保至少一个可以被创建的给定局部引用数。
ExceptionClearClears any exception that is currently being thrown.
清除当前抛出的任何异常。如果当前无异常,则此例程不产生任何效果。
ExceptionDescribePrints an exception and a backtrace of the stack to the logcat
将异常及堆栈的回溯输出到系统错误报告信道。该例程可便利调试操作。
ExceptionOccurredDetermines if an exception is being thrown.
确定是否某个异常正被抛出。
FatalErrorRaises a fatal error and does not expect the VM to recover. This function does not return.
抛出致命错误并且不希望虚拟机进行修复。该函数无返回值。
FindClassThis function loads a locally-defined class.
这个函数加载一个本地定义的类。
FromBooleanArrayConvert a Java array of boolean to a managed array of System.Boolean.
转换一个Java布尔数组到一个托管System.Boolean数组。
FromByteArrayConvert a Java array of byte to a managed array of System.Byte.
转换一个Java字节数组到一个托管的System.Byte数组。
FromCharArrayConvert a Java array of char to a managed array of System.Char.
转换一个Java字符数组到一个托管的System.Char数组。
FromDoubleArrayConvert a Java array of double to a managed array of System.Double.
转换一个Java双精度浮点数数组到一个托管的System.Double数组
FromFloatArrayConvert a Java array of float to a managed array of System.Single.
转换一个Java浮点数数组到一个托管的System.Single数组。
FromIntArrayConvert a Java array of int to a managed array of System.Int32.
转换一个Java整数数组到一个托管的System.Int32数组。
FromLongArrayConvert a Java array of long to a managed array of System.Int64.
转换一个Java长整数数组到一个托管的System.Int64数组。
FromObjectArrayConvert a Java array of java.lang.Object to a managed array of System.IntPtr, representing Java objects.
转换一个Java的java.lang.Object数组到一个托管的System.IntPtr数组,表示Java对象。
FromReflectedFieldConverts a java.lang.reflect.Field to a field ID.
转换一个java.lang.reflect.Field到一个域ID。
FromReflectedMethodConverts a java.lang.reflect.Method or java.lang.reflect.Constructor object to a method ID.
转换一个java.lang.reflect.Method或java.lang.reflect.Constructor对象到一个方法ID。
FromShortArrayConvert a Java array of short to a managed array of System.Int16.
转换一个Java短整数数组到一个托管的System.Int16数组。
GetArrayLengthReturns the number of elements in the array.
返回数组的元素数。
GetBooleanArrayElementReturns the value ofone element of a primitive array.
返回一个基本数组一个元素的值。
GetBooleanFieldThis function returns the value of an instance (nonstatic) field of an object.
这个函数返回一个对象实例(非静态)域的值。
GetByteArrayElementReturns the value of one element of a primitive array.
返回一个基本数组一个元素的值。
GetByteFieldThis function returns the value of an instance (nonstatic) field of an object.
这个函数返回一个对象实例(非静态)域的值。
GetCharArrayElementReturns the value of one element of a primitive array.
返回一个基本数组一个元素的值。
GetCharFieldThis function returns the value of an instance (nonstatic) field of an object.
这个函数返回一个对象实例(非静态)域的值。
GetDoubleArrayElementReturns the value of one element of a primitive array.
返回一个基本数组一个元素的值。
GetDoubleFieldThis function returns the value of an instance (nonstatic) field of an object.
这个函数返回一个对象实例(非静态)域的值。
GetFieldIDReturns the field ID for an instance (nonstatic) field of a class.
androidjni
返回类的实例区域(非静态)的区域ID。
GetFloatArrayElementReturns the value of one element of a primitive array.
返回一个基本数组一个元素的值。
GetFloatFieldThis function returns the value of an instance (nonstatic) field of an object.
这个函数返回一个对象实例(非静态)域的值。
GetIntArrayElementReturns the value of one element of a primitive array.
返回一个基本数组一个元素的值。
GetIntFieldThis function returns the value of an instance (nonstatic) field of an object.
这个函数返回一个对象实例(非静态)域的值。
GetLongArrayElementReturns the value of one element of a primitive array.
返回一个基本数组一个元素的值。
GetLongFieldThis function returns the value of an instance (nonstatic) field of an object.
这个函数返回一个对象实例(非静态)域的值。
GetMethodIDReturns the method ID for an instance (nonstatic) method of a class or interface.
返回类或接口实例(非静态)方法的方法 ID。
GetObjectArrayElementReturns an element of an Object array.
返回一个对象数组一个元素的值。
GetObjectClassReturns the class of an object.
返回一个对象的类。
GetObjectFieldThis function returns the value of an instance (nonstatic) field of an object.
这个函数返回一个对象实例(非静态)域的值。
GetShortArrayElementReturns the value of one element of a primitive array.
返回一个基本数组一个元素的值。
GetShortFieldThis function returns the value of an instance (nonstatic) field of an object.
这个函数返回一个对象实例(非静态)域的值。
GetStaticBooleanFieldThis function returns the value of a static field of an object.
这个函数返回一个对象静态域的值。
GetStaticByteFieldThis function returns the value of a static field of an object.
这个函数返回一个对象静态域的值。
GetStaticCharFieldThis function returns the value of a static field of an object.
这个函数返回一个对象静态域的值。
GetStaticDoubleFieldThis function returns the value of a static field of an object.
这个函数返回一个对象静态域的值。
GetStaticFieldIDReturns the field ID for a static field of a class.
返回一个类的静态域的ID域
GetStaticFloatFieldThis function returns the value of a static field of an object.
这个函数返回一个对象静态域的值。
GetStaticIntFieldThis function returns the value of a static field of an object.
这个函数返回一个对象静态域的值。
GetStaticLongFieldThis function returns the value of a static field of an object.
这个函数返回一个对象静态域的值。
GetStaticMethodIDReturns the method ID for a static method of a class.
GetStaticObjectFieldThis function returns the value of a static field of an object.
这个函数返回一个对象静态域的值。
GetStaticShortFieldThis function returns the value of a static field of an object.
这个函数返回一个对象静态域的值。
GetStaticStringFieldThis function returns the value of a static field of an object.
这个函数返回一个对象静态域的值。
GetStringFieldThis function returns the value of an instance (nonstatic) field of an object.
这个函数设置一个对象实例(非静态)域的值。
GetStringUTFCharsReturns a managed string object representing the string in modified UTF-8 encoding.
返回由UTF-8修改的托管的字符串对象
GetStringUTFLengthReturns the length in bytes of the modified UTF-8 representation of a string.
以字节为单位返回字符串的 UTF-8 长度。
GetSuperclassIf clazz represents any class other than the class Object, then this function returns the object that represents the superclass of the class specified by clazz.
如果 clazz 代表类而非类 object,则该函数返回由 clazz 所指定的类的超类。
GetVersionReturns the version of the native method interface.
返回本地方法接口的版本。
IsAssignableFromDetermines whether an object of clazz1 can be safely cast to clazz2.
确定 clazz1 的对象是否可安全地强制转换为 clazz2。
IsInstanceOfTests whether an object is an instance of a class.
测试对象是否为某个类的实例。
IsSameObjectTests whether two references refer to the same Java object.
测试两个引用是否引用同一 Java 对象。
NewBooleanArrayConstruct a new primitive array object.
构造一个新的基本数组对象。
NewByteArrayConstruct a new primitive array object.
构造一个新的基本数组对象。
NewCharArrayConstruct a new primitive array object.
构造一个新的基本数组对象。
NewDoubleArrayConstruct a new primitive array object.
构造一个新的基本数组对象。
NewFloatArrayConstruct a new primitive array object.
构造一个新的基本数组对象。
NewGlobalRefCreates a new global reference to the object referred to by the obj argument.
创建 obj 参数所引用对象的新全局引用。
NewIntArrayConstruct a new primitive array object.
构造一个新的基本数组对象。
NewLocalRefCreates a new local reference that refers to the same object as obj.
创建 obj 参数对象的新局部引用。
NewLongArrayConstruct a new primitive array object.
构造一个新的基本数组对象。
NewObjectConstructs a new Java object. The method ID indicates which constructor method to invoke. This ID must be obtained by calling GetMethodID() with <init> as the method name and void (V) as the return type.
构造新的 Java 对象。方法 ID指示应调用的构造函数方法。该 ID 必须通过调用 GetMethodID() 获得,且调用时的方法名必须为 <init>,而返回类型必须为 void (V)。
NewObjectArrayConstructs a new array holding objects in class clazz. All elements are initially set to obj.
构造新的数组,它将保存在类 clazz 中的对象。所有元素初始值均设为 obj。
NewShortArrayConstruct a new primitive array object.
构造一个新的基本数组对象。
NewStringUTFConstructs a new java.lang.String object from an array of characters in modified UTF-8 encoding.
利用改进的 UTF-8 编码字符数组构造新的 java.lang.String 对象。
PopLocalFramePops off the current local reference frame, frees all the local references, and returns a local reference in the previous local reference frame for the given result object.
弹出关闭当前局部引用帧,释放所有的本地引用,并返回一个局部引用,在前一个局部引用帧,用于给定的结果对象。
PushLocalFrameCreates a new local reference frame, in which at least a given number of local references can be created.
创建一个新的局部引入帧,至少一个给定的局部引用可以被创建的数。
SetBooleanFieldThis function sets the value of an instance (nonstatic) field of an object.
这个函数设置一个对象实例(非静态)域的值。
SetByteArrayElementSets the value of one element in a primitive array.
设置一个基本数组一个元素的值。
SetByteFieldThis function sets the value of an instance (nonstatic) field of an object.
这个函数返回一个对象实例(非静态)域的值。
SetCharArrayElementSets the value of one element in a primitive array.
设置一个基本数组一个元素的值。
SetCharFieldThis function sets the value of an instance (nonstatic) field of an object.
这个函数返回一个对象实例(非静态)域的值。
SetDoubleArrayElementSets the value of one element in a primitive array.
设置一个基本数组一个元素的值。
SetDoubleFieldThis function sets the value of an instance (nonstatic) field of an object.
这个函数返回一个对象实例(非静态)域的值。
SetFloatArrayElementSets the value of one element in a primitive array.
设置一个基本数组一个元素的值。
SetFloatFieldThis function sets the value of an instance (nonstatic) field of an object.
这个函数返回一个对象实例(非静态)域的值。
SetIntArrayElementSets the value of one element in a primitive array.
设置一个基本数组一个元素的值。
SetIntFieldThis function sets the value of an instance (nonstatic) field of an object.
这个函数返回一个对象实例(非静态)域的值。
SetLongArrayElementSets the value of one element in a primitive array.
设置一个基本数组一个元素的值。
SetLongFieldThis function sets the value of an instance (nonstatic) field of an object.
这个函数返回一个对象实例(非静态)域的值。
SetObjectArrayElementSets an element of an Object array.
设置一个基本数组一个元素的值。
SetObjectFieldThis function sets the value of an instance (nonstatic) field of an object.
这个函数返回一个对象实例(非静态)域的值。
SetShortArrayElementSets the value of one element in a primitive array.
设置一个基本数组一个元素的值。
SetShortFieldThis function sets the value of an instance (nonstatic) field of an object.
这个函数返回一个对象实例(非静态)域的值。
SetStaticBooleanFieldThis function ets the value of a static field of an object.
该函数设置一个对象的静态域的值。
SetStaticByteFieldThis function ets the value of a static field of an object.
该函数设置一个对象的静态域的值。
SetStaticCharFieldThis function ets the value of a static field of an object.
该函数设置一个对象的静态域的值。
SetStaticDoubleFieldThis function ets the value of a static field of an object.
该函数设置一个对象的静态域的值。
SetStaticFloatFieldThis function ets the value of a static field of an object.
该函数设置一个对象的静态域的值。
SetStaticIntFieldThis function ets the value of a static field of an object.
该函数设置一个对象的静态域的值。
SetStaticLongFieldThis function ets the value of a static field of an object.
该函数设置一个对象的静态域的值。
SetStaticObjectFieldThis function ets the value of a static field of an object.
该函数设置一个对象的静态域的值。
SetStaticShortFieldThis function ets the value of a static field of an object.
该函数设置一个对象的静态域的值。
SetStaticStringFieldThis function ets the value of a static field of an object.
该函数设置一个对象的静态域的值。
SetStringFieldThis function sets the value of an instance (nonstatic) field of an object.
这个函数设置一个对象实例(非静态)域的值。
ThrowCauses a java.lang.Throwable object to be thrown.
由 java.lang.Throwable 抛出该对象。
ThrowNewConstructs an exception object from the specified class with the message specified by message and causes that exception to be thrown.
利用指定类的消息(由 message 指定)构造异常对象并抛出该异常。
ToBooleanArrayConvert a managed array of System.Boolean to a Java array of boolean.
转换一个System.Boolean的托管数组到一个Java布尔数组。
ToByteArrayConvert a managed array of System.Byte to a Java array of byte.
转换一个System.Byte的托管数组到一个Java的字节数组。
ToCharArrayConvert a managed array of System.Char to a Java array of char.
转换一个System.Char的托管数组到一个Java的字符数组。
ToDoubleArrayConvert a managed array of System.Double to a Java array of double.
转换一个System.Double的托管数组到一个Java的双精度浮点数数组。
ToFloatArrayConvert a managed array of System.Single to a Java array of float.
转换一个System.Single的托管数组到一个Java的浮点数数组。
ToIntArrayConvert a managed array of System.Int32 to a Java array of int.
转换一个System.Int32的托管数组到一个Java的整数数组。
ToLongArrayConvert a managed array of System.Int64 to a Java array of long.
转换一个System.Int64的托管数组到一个Java的长整数数组。
ToObjectArrayConvert a managed array of System.IntPtr, representing Java objects, to a Java array of java.lang.Object.
转换一个System.IntPtr的托管数组,表示Java对象,到一个Java的java.lang.Object数组。
ToReflectedFieldConverts a field ID derived from cls to a java.lang.reflect.Field object.
转换一个取自cls的域ID到一个java.lang.reflect.Field对象。
ToReflectedMethodConverts a method ID derived from clazz to a java.lang.reflect.Method or java.lang.reflect.Constructor object.
转换一个java.lang.reflect.Method或java.lang.reflect.Constructor对象到一个方法ID。
ToShortArrayConvert a managed array of System.Int16 to a Java array of short.
转换一个System.Int16的托管数组到一个Java的短整数数组。

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文