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

static function SetStaticObjectField(clazz: IntPtr, fieldID: IntPtr, val: IntPtr): void;
static void SetStaticObjectField(IntPtr clazz, IntPtr fieldID, IntPtr val);
static def SetStaticObjectField(clazz as IntPtr, fieldID as IntPtr, val as IntPtr) as void

Description

This function ets the value of a static field of an object.

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

See Also: Java Native Interface Specification (Oracle)