printString

fun printString(string: String? = null, typeAnnotate: Boolean): String

Behaves as g_variant_print(), but operates on a #GString.

If @string is non-null then it is appended to and returned. Else, a new empty #GString is allocated and it is returned.

Return

a #GString containing the string

Since

2.24

Parameters

string

a #GString, or null

typeAnnotate

true if type information should be included in the output