GLib.Variant.prototype.get_child_value
function get_child_value(index_: Number(gsize)): GLib.Variant {
// Gjs wrapper for g_variant_get_child_value()
}
Reads a child item out of a container GLib.Variant instance. This includes variants, maybes, arrays, tuples and dictionary entries. It is an error to call this function on any other type of GLib.Variant.
It is an error if index_ is greater than the number of child items in the container. See GLib.Variant.prototype.n_children.
The returned value is never floating. You should free it with GLib.Variant.prototype.unref when you're done with it.
This function is O(1).
Since 2.24
- index_
the index of the child to fetch
- Returns
the child at the specified index