AndroidJNIHelper.GetFieldID Manual     Reference     Scripting  
Scripting > Runtime Classes > AndroidJNIHelper
AndroidJNIHelper.GetFieldID

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

Parameters

NameDescription
javaClass Raw JNI Java class object (obtained by calling AndroidJNI.FindClass).
fieldName Name of the field as declared in Java.
signature Field signature (e.g. obtained by calling AndroidJNIHelper.GetSignature).
isStatic Set to true for static fields; false for instance (nonstatic) fields.

Description

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

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.

See Also: AndroidJNIHelper.GetSignature, AndroidJNIHelper.GetConstructorID, AndroidJNIHelper.GetMethodID