AndroidJNI.SetObjectField 设置对象域


static function SetObjectField (obj : IntPtr, fieldID : IntPtr, val : IntPtr) : void

Description描述

This function sets the value of an instance (nonstatic) field of an object.

这个函数设置一个对象实例(非静态)域的值。

The value to set is a reference to either a java.lang.Object, or a subclass thereof.

要设置的值无论是一个java.lang.Object的引用,或者其子类。

参见:Java Native Interface Specification (Oracle)


,