SessionItem.getMetadataValue

glib.variant.Variant getMetadataValue(string key, glib.variant_type.VariantType expectedType = null)

Retrieves the metadata value for key.

If expected_type is non-null, any non-null value returned from this function will match expected_type.

Parameters

keythe metadata key
expectedTypea #GVariantType or null

Returns

a non-floating #GVariant which should

be released with [glib.variant.Variant.unref]; otherwise null.