VariantDict.lookupValue

Looks up a value in a #GVariantDict.

If @key is not found in @dictionary, %NULL is returned.

The @expected_type string specifies what type of value is expected. If the value associated with @key has a different type then %NULL is returned.

If the key is found and the value has the correct type, it is returned. If @expected_type was specified then any non-%NULL return value will have this type.

class VariantDict
lookupValue

Parameters

key string

the key to lookup in the dictionary

expectedType VariantType

a #GVariantType, or %NULL

Return: the value of the dictionary key, or %NULL

Meta

Since

2.40