Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AndroidJNI.GetObjectField

static function GetObjectField(obj: IntPtr, fieldID: IntPtr): IntPtr;
static IntPtr GetObjectField(IntPtr obj, IntPtr fieldID);
static def GetObjectField(obj as IntPtr, fieldID as IntPtr) as IntPtr

Description

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

The result is a reference to a java.lang.Object, or a subclass thereof.

See Also: Java Native Interface Specification (Oracle)