AndroidJNI
- AllocObject
- AttachCurrentThread
- CallBooleanMethod
- CallByteMethod
- CallCharMethod
- CallDoubleMethod
- CallFloatMethod
- CallIntMethod
- CallLongMethod
- CallObjectMethod
- CallShortMethod
- CallStaticBooleanMethod
- CallStaticByteMethod
- CallStaticCharMethod
- CallStaticDoubleMethod
- CallStaticFloatMethod
- CallStaticIntMethod
- CallStaticLongMethod
- CallStaticObjectMethod
- CallStaticShortMethod
- CallStaticStringMethod
- CallStaticVoidMethod
- CallStringMethod
- CallVoidMethod
- DeleteGlobalRef
- DeleteLocalRef
- DetachCurrentThread
- EnsureLocalCapacity
- ExceptionClear
- ExceptionDescribe
- ExceptionOccurred
- FatalError
- FindClass
- FromBooleanArray
- FromByteArray
- FromCharArray
- FromDoubleArray
- FromFloatArray
- FromIntArray
- FromLongArray
- FromObjectArray
- FromReflectedField
- FromReflectedMethod
- FromShortArray
- GetArrayLength
- GetBooleanArrayElement
- GetBooleanField
- GetByteArrayElement
- GetByteField
- GetCharArrayElement
- GetCharField
- GetDoubleArrayElement
- GetDoubleField
- GetFieldID
- GetFloatArrayElement
- GetFloatField
- GetIntArrayElement
- GetIntField
- GetLongArrayElement
- GetLongField
- GetMethodID
- GetObjectArrayElement
- GetObjectClass
- GetObjectField
- GetShortArrayElement
- GetShortField
- GetStaticBooleanField
- GetStaticByteField
- GetStaticCharField
- GetStaticDoubleField
- GetStaticFieldID
- GetStaticFloatField
- GetStaticIntField
- GetStaticLongField
- GetStaticMethodID
- GetStaticObjectField
- GetStaticShortField
- GetStaticStringField
- GetStringField
- GetStringUTFChars
- GetStringUTFLength
- GetSuperclass
- GetVersion
- IsAssignableFrom
- IsInstanceOf
- IsSameObject
- NewBooleanArray
- NewByteArray
- NewCharArray
- NewDoubleArray
- NewFloatArray
- NewGlobalRef
- NewIntArray
- NewLocalRef
- NewLongArray
- NewObjectArray
- NewObject
- NewShortArray
- NewStringUTF
- PopLocalFrame
- PushLocalFrame
- SetBooleanArrayElement
- SetBooleanField
- SetByteArrayElement
- SetByteField
- SetCharArrayElement
- SetCharField
- SetDoubleArrayElement
- SetDoubleField
- SetFloatArrayElement
- SetFloatField
- SetIntArrayElement
- SetIntField
- SetLongArrayElement
- SetLongField
- SetObjectArrayElement
- SetObjectField
- SetShortArrayElement
- SetShortField
- SetStaticBooleanField
- SetStaticByteField
- SetStaticCharField
- SetStaticDoubleField
- SetStaticFloatField
- SetStaticIntField
- SetStaticLongField
- SetStaticObjectField
- SetStaticShortField
- SetStaticStringField
- SetStringField
- ThrowNew
- Throw
- ToBooleanArray
- ToByteArray
- ToCharArray
- ToDoubleArray
- ToFloatArray
- ToIntArray
- ToLongArray
- ToObjectArray
- ToReflectedField
- ToReflectedMethod
- ToShortArray
AndroidJNI.NewObject 新建对象
static function NewObject (clazz : IntPtr, methodID : IntPtr, args : jvalue[]) : IntPtr
Description描述
Constructs a new Java object. The method ID indicates which constructor method to invoke. This ID must be obtained by calling GetMethodID() with as the method name and void (V) as the return type.
构造新的 Java 对象。方法 ID指示应调用的构造函数方法。该 ID 必须通过调用 GetMethodID() 获得,且调用时的方法名必须为 <init>,而返回类型必须为 void (V)。
clazz 参数务必不要引用数组类。
参见: Java Native Interface Specification (Oracle)
最后修改:2011年4月15日 Friday 12:40