Dela via


JsonWriter.SetIndent(String) Method

Definition

Sets the indentation string to be repeated for each level of indentation in the encoded document.

[Android.Runtime.Register("setIndent", "(Ljava/lang/String;)V", "")]
public void SetIndent (string? indent);
[<Android.Runtime.Register("setIndent", "(Ljava/lang/String;)V", "")>]
member this.SetIndent : string -> unit

Parameters

indent
String

a string containing only whitespace.

Attributes

Remarks

Sets the indentation string to be repeated for each level of indentation in the encoded document. If indent.isEmpty() the encoded document will be compact. Otherwise the encoded document will be more human-readable.

Java documentation for android.util.JsonWriter.setIndent(java.lang.String).

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