GLib.Variant.new_string
function new_string(string: String): GLib.Variant {
// Gjs wrapper for g_variant_new_string()
}
Creates a string GLib.Variant with the contents of string.
string must be valid utf8.
Since 2.24
- string
a normal utf8 nul-terminated string
- Returns
a floating reference to a new string GLib.Variant instance