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.GetStaticObjectField

static function GetStaticObjectField(clazz: IntPtr, fieldID: IntPtr): IntPtr;
static IntPtr GetStaticObjectField(IntPtr clazz, IntPtr fieldID);
static def GetStaticObjectField(clazz as IntPtr, fieldID as IntPtr) as IntPtr

Description

This function returns the value of a static 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)