SessionItem.hasMetadataWithType

bool hasMetadataWithType(string key, glib.variant_type.VariantType expectedType)

Checks if the item contains metadata key with expected_type.

Parameters

keythe metadata key
expectedTypethe #GVariantType to check for key

Returns

true if a value was found for key matching expected_typed;

otherwise false is returned.