SessionItem.getMetadataValue

Retrieves the metadata value for key.

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

class SessionItem
getMetadataValue

Parameters

key string

the metadata key

expectedType glib.variant_type.VariantType

a #GVariantType or null

Return Value

Type: glib.variant.Variant

a non-floating #GVariant which should be released with glib.variant.Variant.unref; otherwise null.