SessionItem.hasMetadataWithType

Checks if the item contains metadata key with expected_type.

class SessionItem
bool
hasMetadataWithType

Parameters

key string

the metadata key

expectedType glib.variant_type.VariantType

the #GVariantType to check for key

Return Value

Type: bool

true if a value was found for key matching expected_typed; otherwise false is returned.