GLib.Variant.new_strv

function new_strv(strv: Array(String)): GLib.Variant {
    // Gjs wrapper for g_variant_new_strv()
}
  

Constructs an array of strings GLib.Variant from the given array of strings.

If length is -1 then strv is null-terminated.

Since 2.24

strv

an array of strings

Returns

a new floating GLib.Variant instance