Language

JniEnvironment.Object.ToString(JniObjectReference) Method

Definition

Invokes the Java object's toString() method.

public static Java.Interop.JniObjectReference ToString(Java.Interop.JniObjectReference value);
static member ToString : Java.Interop.JniObjectReference -> Java.Interop.JniObjectReference

Parameters

value
JniObjectReference

A valid Java object reference.

Returns

A local JNI reference to the returned Java string, which the caller must release, or an invalid reference if the method returns null.

Remarks

Returns a string representation of the object.

Java reference for java.lang.Object.toString.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to