AndroidJNIHelper.GetFieldID 获取域ID

static function GetFieldID (javaClass : IntPtr, fieldName : string, signature : string = "", isStatic : bool = false) : IntPtr

Parameters参数

Description描述

Scans a particular Java class for a field matching a name and a signature.

扫描一个特定的Java类,用于一个域匹配一个名字和一个签名。

The signature comparison is done to allow sub-/base-classes of a class types. If no signature is provided the first field with the correct name will be returned.

签名比较是为了允许类的类型的 sub-/base-classes。如果没有提供

签名,具有正确的名称的首个域将被返回。

参见:AndroidJNIHelper.GetSignature, AndroidJNIHelper.GetConstructorID, AndroidJNIHelper.GetMethodID

Page last updated: 2011-4-9