new

fun new(typeString: String): VariantType

Creates a new #GVariantType corresponding to the type string given by @type_string. It is appropriate to call g_variant_type_free() on the return value.

It is a programmer error to call this function with an invalid type string. Use g_variant_type_string_is_valid() if you are unsure.

Return

a new #GVariantType

Since

2.24

Parameters

typeString

a valid GVariant type string