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

static function SetStringField(obj: IntPtr, fieldID: IntPtr, val: string): void;
static void SetStringField(IntPtr obj, IntPtr fieldID, string val);
static def SetStringField(obj as IntPtr, fieldID as IntPtr, val as string) as void

Description

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

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

See Also: AndroidJNI.SetObjectField.