SessionItem.hasMetadata

If the item contains a metadata value for key.

Checks if a value exists for a metadata key and retrieves the #GVariantType for that key.

class SessionItem
bool
hasMetadata

Parameters

key string

the name of the metadata

valueType glib.variant_type.VariantType

a location for a #GVariantType or null

Return Value

Type: bool

true if self contains metadata named key and value_type is set to the value's #GVariantType. Otherwise false and value_type is unchanged.