newString

fun newString(string: String): Variant

Creates a string #GVariant with the contents of @string.

Return

a floating reference to a new string #GVariant instance

Since

2.24

Parameters

string

a normal UTF-8 nul-terminated string