VariantBuilder.end

Ends the builder process and returns the constructed value.

It is not permissible to use builder in any way after this call except for reference counting operations (in the case of a heap-allocated glib.VariantBuilder) or by reinitialising it with Variant.builderInit (in the case of stack-allocated). This means that for the stack-allocated builders there is no need to call Variant.builderClear after the call to Variant.builderEnd.

It is an error to call this function in any way that would create an inconsistent value to be constructed (ie: insufficient number of items added to a container with a specific number of children required). It is also an error to call this function if the builder was created with an indefinite array or maybe type and no children have been added; in this case it is impossible to infer the type of the empty array.

class VariantBuilder
end
()

Return Value

Type: Variant

a new, floating, glib.Variant

Meta

Since

2.24