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

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

Description

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

This is a convenience function that calls SetStaticObjectField() with the same parameters, but performs the necessary marshalling of the string value.

See Also: AndroidJNI.SetStaticObjectField.